UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

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