UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

558 lines (436 loc) 88.2 kB
var moment = require("../../index"); exports["America/Thunder_Bay"] = { "1910" : function (t) { t.equal(moment("1910-01-01T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "23:59:59", "1910-01-01T05:59:59+00:00 should be 23:59:59 CST"); t.equal(moment("1910-01-01T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1910-01-01T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1910-01-01T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 360, "1910-01-01T05:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1910-01-01T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1910-01-01T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1942" : function (t) { t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1942-02-09T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1942-02-09T07:00:00+00:00 should be 03:00:00 EWT"); t.equal(moment("1942-02-09T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1942-02-09T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1942-02-09T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1942-02-09T07:00:00+00:00 should be 240 minutes offset in EWT"); t.done(); }, "1945" : function (t) { t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "18:59:59", "1945-08-14T22:59:59+00:00 should be 18:59:59 EWT"); t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "19:00:00", "1945-08-14T23:00:00+00:00 should be 19:00:00 EPT"); t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1945-09-30T05:59:59+00:00 should be 01:59:59 EPT"); t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1945-09-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1945-08-14T22:59:59+00:00 should be 240 minutes offset in EWT"); t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1945-08-14T23:00:00+00:00 should be 240 minutes offset in EPT"); t.equal(moment("1945-09-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1945-09-30T05:59:59+00:00 should be 240 minutes offset in EPT"); t.equal(moment("1945-09-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1945-09-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1970" : function (t) { t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1971" : function (t) { t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1972" : function (t) { t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1974" : function (t) { t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1974-04-28T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1974-04-28T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1974-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1974-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1974-04-28T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1974-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1974-04-28T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1974-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1974-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1974-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1974-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1974-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1975" : function (t) { t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1975-04-27T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1975-04-27T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1975-04-27T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1975-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1975-04-27T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1975-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1976" : function (t) { t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1977" : function (t) { t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1978" : function (t) { t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1979" : function (t) { t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1980" : function (t) { t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1981" : function (t) { t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1982" : function (t) { t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1983" : function (t) { t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1984" : function (t) { t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1985" : function (t) { t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1986" : function (t) { t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1986-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1986-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1986-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1987" : function (t) { t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1987-04-05T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1987-04-05T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1987-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1987-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1987-04-05T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1987-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1987-04-05T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1987-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1987-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1987-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1987-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1987-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1988" : function (t) { t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1988-04-03T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1988-04-03T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1988-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1988-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1988-04-03T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1988-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1988-04-03T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1988-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1988-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1988-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1988-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1988-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1989" : function (t) { t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1989-04-02T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1989-04-02T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1989-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1989-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1989-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1989-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1989-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1989-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1989-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1989-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1989-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1989-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1990" : function (t) { t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1990-04-01T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1990-04-01T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1990-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1990-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1990-04-01T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1990-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1990-04-01T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1990-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1990-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1990-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1990-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1990-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1991" : function (t) { t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1991-04-07T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1991-04-07T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1991-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1991-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1991-04-07T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1991-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1991-04-07T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1991-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1991-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1991-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1991-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1991-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1992" : function (t) { t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1992-04-05T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1992-04-05T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1992-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1992-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1992-04-05T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1992-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1992-04-05T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1992-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1992-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1992-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1992-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1992-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1993" : function (t) { t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1993-04-04T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1993-04-04T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1993-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1993-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1993-04-04T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1993-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1993-04-04T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1993-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1993-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1993-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1993-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1993-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1994" : function (t) { t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1994-04-03T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1994-04-03T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1994-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1994-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1994-04-03T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1994-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1994-04-03T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1994-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1994-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1994-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1994-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1994-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1995" : function (t) { t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1995-04-02T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1995-04-02T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1995-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1995-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1995-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1995-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1995-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1995-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1995-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1995-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1995-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1995-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1996" : function (t) { t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1997" : function (t) { t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1998" : function (t) { t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1998-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1998-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1998-10-25T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1998-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1998-10-25T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1998-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1999" : function (t) { t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1999-04-04T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "1999-04-04T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "1999-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "1999-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1999-04-04T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "1999-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1999-04-04T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "1999-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1999-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "1999-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1999-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "1999-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2000" : function (t) { t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2000-04-02T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2000-04-02T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2000-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2000-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2000-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2000-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2000-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2000-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2000-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2000-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2000-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2000-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2001" : function (t) { t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2001-04-01T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2001-04-01T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2001-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2001-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2001-04-01T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2001-04-01T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2001-04-01T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2001-04-01T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2001-10-28T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2001-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2001-10-28T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2001-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2002" : function (t) { t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2002-04-07T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2002-04-07T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2002-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2002-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2002-04-07T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2002-04-07T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2002-04-07T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2002-04-07T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2002-10-27T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2002-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2002-10-27T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2002-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2003" : function (t) { t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2003-04-06T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2003-04-06T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2003-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2003-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2003-04-06T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2003-04-06T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2003-04-06T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2003-04-06T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2003-10-26T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2003-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2003-10-26T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2003-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2004" : function (t) { t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2004-04-04T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2004-04-04T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2004-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2004-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2004-04-04T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2004-04-04T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2004-04-04T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2004-04-04T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2004-10-31T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2004-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2004-10-31T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2004-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2005" : function (t) { t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2005-04-03T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2005-04-03T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2005-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2005-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2005-04-03T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2005-04-03T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2005-04-03T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2005-04-03T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2005-10-30T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2005-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2005-10-30T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2005-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2006" : function (t) { t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2006-04-02T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2006-04-02T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2006-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2006-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2006-04-02T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2006-04-02T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2006-04-02T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2006-04-02T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2006-10-29T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2006-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2006-10-29T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2006-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2007" : function (t) { t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2007-03-11T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "03:00:00", "2007-03-11T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:59:59", "2007-11-04T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "01:00:00", "2007-11-04T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("2007-03-11T06:59:59+00:00").tz("America/Thunder_Bay").zone(), 300, "2007-03-11T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("2007-03-11T07:00:00+00:00").tz("America/Thunder_Bay").zone(), 240, "2007-03-11T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2007-11-04T05:59:59+00:00").tz("America/Thunder_Bay").zone(), 240, "2007-11-04T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("2007-11-04T06:00:00+00:00").tz("America/Thunder_Bay").zone(), 300, "2007-11-04T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "2008" : function (t) { t.equal(moment("2008-03-09T06:59:59+00:00").tz("America/Thunder_Bay").format("HH:mm:ss"), "