UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

562 lines (440 loc) 116 kB
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(