UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

573 lines (448 loc) 73.3 kB
var moment = require("../../index"); exports["Atlantic/Canary"] = { "1922" : function (t) { t.equal(moment("1922-03-01T01:01:35+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "23:59:59", "1922-03-01T01:01:35+00:00 should be 23:59:59 LMT"); t.equal(moment("1922-03-01T01:01:36+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:01:36", "1922-03-01T01:01:36+00:00 should be 00:01:36 CANT"); t.equal(moment("1922-03-01T01:01:35+00:00").tz("Atlantic/Canary").zone(), 3696 / 60, "1922-03-01T01:01:35+00:00 should be 3696 / 60 minutes offset in LMT"); t.equal(moment("1922-03-01T01:01:36+00:00").tz("Atlantic/Canary").zone(), 60, "1922-03-01T01:01:36+00:00 should be 60 minutes offset in CANT"); t.done(); }, "1946" : function (t) { t.equal(moment("1946-09-30T01:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1946-09-30T01:59:59+00:00 should be 00:59:59 CANT"); t.equal(moment("1946-09-30T02:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1946-09-30T02:00:00+00:00 should be 02:00:00 WET"); t.equal(moment("1946-09-30T01:59:59+00:00").tz("Atlantic/Canary").zone(), 60, "1946-09-30T01:59:59+00:00 should be 60 minutes offset in CANT"); t.equal(moment("1946-09-30T02:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1946-09-30T02:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1980" : function (t) { t.equal(moment("1980-04-05T23:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "23:59:59", "1980-04-05T23:59:59+00:00 should be 23:59:59 WET"); t.equal(moment("1980-04-06T00:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1980-04-06T00:00:00+00:00 should be 01:00:00 WEST"); t.equal(moment("1980-09-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1980-09-28T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1980-09-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1980-09-28T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1980-04-05T23:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1980-04-05T23:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1980-04-06T00:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1980-04-06T00:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1980-09-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1980-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1980-09-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1980-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1981" : function (t) { t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1981-03-29T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1981-03-29T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1981-09-27T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1981-09-27T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1981-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1981-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1981-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1981-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1981-09-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1981-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1981-09-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1981-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1982" : function (t) { t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1982-03-28T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1982-03-28T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1982-09-26T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1982-09-26T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1982-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1982-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1982-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1982-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1982-09-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1982-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1982-09-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1982-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1983" : function (t) { t.equal(moment("1983-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1983-03-27T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1983-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1983-03-27T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1983-09-25T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1983-09-25T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1983-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1983-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1983-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1983-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1983-09-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1983-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1983-09-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1983-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1984" : function (t) { t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1984-03-25T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1984-03-25T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1984-09-30T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1984-09-30T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1984-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1984-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1984-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1984-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1984-09-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1984-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1984-09-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1984-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1985" : function (t) { t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1985-03-31T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1985-03-31T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1985-09-29T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1985-09-29T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1985-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1985-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1985-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1985-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1985-09-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1985-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1985-09-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1985-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1986" : function (t) { t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1986-03-30T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1986-03-30T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1986-09-28T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1986-09-28T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1986-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1986-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1986-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1986-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1986-09-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1986-09-28T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1986-09-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1986-09-28T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1987" : function (t) { t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1987-03-29T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1987-03-29T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1987-09-27T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1987-09-27T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1987-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1987-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1987-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1987-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1987-09-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1987-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1987-09-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1987-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1988" : function (t) { t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1988-03-27T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1988-03-27T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1988-09-25T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1988-09-25T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1988-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1988-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1988-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1988-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1988-09-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1988-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1988-09-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1988-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1989" : function (t) { t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1989-03-26T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1989-03-26T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1989-09-24T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1989-09-24T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1989-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1989-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1989-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1989-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1989-09-24T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1989-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1989-09-24T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1989-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1990" : function (t) { t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1990-03-25T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1990-03-25T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1990-09-30T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1990-09-30T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1990-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1990-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1990-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1990-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1990-09-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1990-09-30T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1990-09-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1990-09-30T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1991" : function (t) { t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1991-03-31T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1991-03-31T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1991-09-29T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1991-09-29T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1991-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1991-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1991-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1991-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1991-09-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1991-09-29T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1991-09-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1991-09-29T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1992" : function (t) { t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1992-03-29T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1992-03-29T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1992-09-27T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1992-09-27T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1992-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1992-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1992-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1992-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1992-09-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1992-09-27T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1992-09-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1992-09-27T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1993" : function (t) { t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1993-03-28T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1993-03-28T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1993-09-26T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1993-09-26T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1993-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1993-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1993-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1993-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1993-09-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1993-09-26T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1993-09-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1993-09-26T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1994" : function (t) { t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1994-03-27T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1994-03-27T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1994-09-25T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1994-09-25T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1994-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1994-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1994-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1994-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1994-09-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1994-09-25T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1994-09-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1994-09-25T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1995" : function (t) { t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1995-03-26T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1995-03-26T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1995-09-24T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1995-09-24T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1995-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1995-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1995-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1995-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1995-09-24T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1995-09-24T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1995-09-24T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1995-09-24T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1996" : function (t) { t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1996-03-31T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1996-03-31T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1996-10-27T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1996-10-27T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1996-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1996-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1996-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1996-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1996-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1996-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1996-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1996-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1997" : function (t) { t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1997-03-30T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1997-03-30T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1997-10-26T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1997-10-26T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1997-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1997-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1997-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1997-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1997-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1997-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1997-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1997-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1998" : function (t) { t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1998-03-29T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1998-03-29T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1998-10-25T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1998-10-25T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1998-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1998-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1998-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1998-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1998-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1998-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1998-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1998-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "1999" : function (t) { t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "1999-03-28T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "1999-03-28T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "1999-10-31T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "1999-10-31T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("1999-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "1999-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("1999-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "1999-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1999-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "1999-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("1999-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "1999-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2000" : function (t) { t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2000-03-26T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2000-03-26T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2000-10-29T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2000-10-29T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2000-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2000-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2000-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2000-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2000-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2000-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2000-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2000-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2001" : function (t) { t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2001-03-25T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2001-03-25T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2001-10-28T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2001-10-28T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2001-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2001-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2001-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2001-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2001-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2001-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2001-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2001-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2002" : function (t) { t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2002-03-31T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2002-03-31T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2002-10-27T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2002-10-27T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2002-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2002-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2002-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2002-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2002-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2002-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2002-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2002-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2003" : function (t) { t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2003-03-30T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2003-03-30T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2003-10-26T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2003-10-26T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2003-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2003-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2003-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2003-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2003-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2003-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2003-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2003-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2004" : function (t) { t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2004-03-28T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2004-03-28T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2004-10-31T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2004-10-31T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2004-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2004-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2004-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2004-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2004-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2004-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2004-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2004-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2005" : function (t) { t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2005-03-27T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2005-03-27T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2005-10-30T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2005-10-30T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2005-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2005-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2005-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2005-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2005-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2005-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2005-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2005-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2006" : function (t) { t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2006-03-26T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2006-03-26T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2006-10-29T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2006-10-29T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2006-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2006-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2006-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2006-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2006-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2006-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2006-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2006-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2007" : function (t) { t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2007-03-25T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2007-03-25T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2007-10-28T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2007-10-28T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2007-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2007-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2007-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2007-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2007-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2007-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2007-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2007-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2008" : function (t) { t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2008-03-30T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2008-03-30T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2008-10-26T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2008-10-26T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2008-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2008-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2008-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2008-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2008-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2008-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2008-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2008-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2009" : function (t) { t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2009-03-29T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2009-03-29T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2009-10-25T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2009-10-25T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2009-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2009-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2009-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2009-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2009-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2009-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2009-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2009-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2010" : function (t) { t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2010-03-28T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2010-03-28T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2010-10-31T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2010-10-31T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2010-03-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2010-03-28T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2010-03-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2010-03-28T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2010-10-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2010-10-31T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2010-10-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2010-10-31T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2011" : function (t) { t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2011-03-27T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2011-03-27T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2011-10-30T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2011-10-30T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2011-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2011-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2011-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2011-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2011-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2011-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2011-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2011-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2012" : function (t) { t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2012-03-25T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2012-03-25T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2012-10-28T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2012-10-28T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2012-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2012-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2012-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2012-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2012-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2012-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2012-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2012-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2013" : function (t) { t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2013-03-31T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2013-03-31T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2013-10-27T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2013-10-27T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2013-03-31T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2013-03-31T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2013-03-31T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2013-03-31T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2013-10-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2013-10-27T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2013-10-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2013-10-27T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2014" : function (t) { t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2014-03-30T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2014-03-30T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2014-10-26T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2014-10-26T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2014-03-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2014-03-30T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2014-03-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2014-03-30T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2014-10-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2014-10-26T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2014-10-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2014-10-26T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2015" : function (t) { t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2015-03-29T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2015-03-29T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2015-10-25T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2015-10-25T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2015-03-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2015-03-29T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2015-03-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2015-03-29T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2015-10-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2015-10-25T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2015-10-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2015-10-25T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2016" : function (t) { t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2016-03-27T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2016-03-27T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2016-10-30T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2016-10-30T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2016-03-27T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2016-03-27T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2016-03-27T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2016-03-27T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2016-10-30T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2016-10-30T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2016-10-30T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2016-10-30T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2017" : function (t) { t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2017-03-26T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2017-03-26T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2017-10-29T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2017-10-29T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2017-03-26T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2017-03-26T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2017-03-26T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2017-03-26T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2017-10-29T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2017-10-29T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2017-10-29T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2017-10-29T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2018" : function (t) { t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2018-03-25T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:00", "2018-03-25T01:00:00+00:00 should be 02:00:00 WEST"); t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:59:59", "2018-10-28T00:59:59+00:00 should be 01:59:59 WEST"); t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "01:00:00", "2018-10-28T01:00:00+00:00 should be 01:00:00 WET"); t.equal(moment("2018-03-25T00:59:59+00:00").tz("Atlantic/Canary").zone(), 0, "2018-03-25T00:59:59+00:00 should be 0 minutes offset in WET"); t.equal(moment("2018-03-25T01:00:00+00:00").tz("Atlantic/Canary").zone(), -60, "2018-03-25T01:00:00+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2018-10-28T00:59:59+00:00").tz("Atlantic/Canary").zone(), -60, "2018-10-28T00:59:59+00:00 should be -60 minutes offset in WEST"); t.equal(moment("2018-10-28T01:00:00+00:00").tz("Atlantic/Canary").zone(), 0, "2018-10-28T01:00:00+00:00 should be 0 minutes offset in WET"); t.done(); }, "2019" : function (t) { t.equal(moment("2019-03-31T00:59:59+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "00:59:59", "2019-03-31T00:59:59+00:00 should be 00:59:59 WET"); t.equal(moment("2019-03-31T01:00:00+00:00").tz("Atlantic/Canary").format("HH:mm:ss"), "02:00:0