UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

532 lines (415 loc) 119 kB
var moment = require("../../../index"); exports["America/Kentucky/Louisville"] = { "1918" : function (t) { t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1918-03-31T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1918-03-31T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1918-03-31T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1918-03-31T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1918-03-31T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1918-03-31T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1919" : function (t) { t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1919-03-30T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1919-03-30T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1919-10-26T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1919-10-26T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1919-03-30T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1919-03-30T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1919-03-30T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1919-03-30T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1919-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1919-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1919-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1919-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1921" : function (t) { t.equal(moment("1921-05-01T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1921-05-01T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1921-05-01T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1921-05-01T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1921-09-01T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1921-09-01T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1921-09-01T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1921-09-01T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1921-05-01T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1921-05-01T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1921-05-01T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1921-05-01T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1921-09-01T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1921-09-01T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1921-09-01T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1921-09-01T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1941" : function (t) { t.equal(moment("1941-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1941-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1941-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1941-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1941-09-28T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1941-09-28T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1941-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1941-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1941-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1941-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1941-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1941-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1941-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1941-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1942" : function (t) { t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); t.done(); }, "1945" : function (t) { t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1946" : function (t) { t.equal(moment("1946-01-01T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "23:59:59", "1946-01-01T05:59:59+00:00 should be 23:59:59 CST"); t.equal(moment("1946-01-01T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1946-01-01T06:00:00+00:00 should be 01:00:00 CDT"); t.equal(moment("1946-06-02T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1946-06-02T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1946-06-02T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1946-06-02T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1946-01-01T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1946-01-01T05:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1946-01-01T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1946-01-01T06:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1946-06-02T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1946-06-02T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1946-06-02T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1946-06-02T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1947" : function (t) { t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.done(); }, "1950" : function (t) { t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1950-09-24T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1950-09-24T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1950-09-24T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1950-09-24T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1950-09-24T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1950-09-24T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1951" : function (t) { t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1952" : function (t) { t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1953" : function (t) { t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1954" : function (t) { t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1955" : function (t) { t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1956" : function (t) { t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1956-10-28T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1956-10-28T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1956-10-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1956-10-28T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1956-10-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1956-10-28T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1957" : function (t) { t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1957-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1957-10-27T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1957-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1957-10-27T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1957-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1957-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1957-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1957-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1958" : function (t) { t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1958-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1958-10-26T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1958-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1958-10-26T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1958-10-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1958-10-26T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1958-10-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1958-10-26T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1959" : function (t) { t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1959-10-25T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1959-10-25T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1959-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1959-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1960" : function (t) { t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1960-10-30T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1960-10-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1960-10-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1960-10-30T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1960-10-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1960-10-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1961" : function (t) { t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1961-04-30T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1961-04-30T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1961-07-23T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1961-07-23T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1961-07-23T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "02:00:00", "1961-07-23T07:00:00+00:00 should be 02:00:00 EST"); t.equal(moment("1961-04-30T07:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 360, "1961-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1961-04-30T08:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1961-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1961-07-23T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1961-07-23T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1961-07-23T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1961-07-23T07:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1968" : function (t) { t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1968-04-28T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1968-04-28T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1968-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1968-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1968-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1968-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1968-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1968-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1968-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1968-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1968-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1968-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1969" : function (t) { t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1969-04-27T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1969-04-27T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1969-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1969-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1969-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1969-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1969-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1969-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1969-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1969-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1969-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1969-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1970" : function (t) { t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1970-04-26T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1970-04-26T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1970-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1970-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1970-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1970-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1970-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1970-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1970-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1970-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1970-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1970-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1971" : function (t) { t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1971-04-25T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1971-04-25T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1971-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1971-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1971-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1971-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1971-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1971-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1971-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1971-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1971-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1971-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1972" : function (t) { t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1972-04-30T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1972-04-30T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1972-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1972-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1972-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1972-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1972-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1972-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1972-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1972-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1972-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1972-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1973" : function (t) { t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1973-04-29T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1973-04-29T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1973-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1973-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1973-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1973-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1973-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1973-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1973-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1973-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1973-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1973-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1974" : function (t) { t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1974-01-06T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "02:00:00", "1974-01-06T07:00:00+00:00 should be 02:00:00 CDT"); t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1974-10-27T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "02:00:00", "1974-10-27T07:00:00+00:00 should be 02:00:00 EST"); t.equal(moment("1974-01-06T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-01-06T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1974-01-06T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-01-06T07:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1974-10-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1974-10-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1974-10-27T07:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1975" : function (t) { t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1975-02-23T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1975-02-23T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1975-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1975-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1975-02-23T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1975-02-23T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1975-02-23T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1975-02-23T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1975-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1975-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1975-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1975-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1976" : function (t) { t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1976-04-25T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1976-04-25T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1976-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1976-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1976-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1976-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1976-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1976-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1976-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1976-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1976-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1976-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1977" : function (t) { t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1977-04-24T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1977-04-24T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1977-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1977-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1977-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1977-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1977-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1977-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1977-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1977-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1977-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1977-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1978" : function (t) { t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1978-04-30T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1978-04-30T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1978-10-29T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1978-10-29T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1978-04-30T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1978-04-30T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1978-04-30T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1978-04-30T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1978-10-29T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1978-10-29T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1978-10-29T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1978-10-29T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1979" : function (t) { t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1979-04-29T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1979-04-29T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1979-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1979-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1979-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1979-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1979-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1979-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1979-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1979-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1979-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1979-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1980" : function (t) { t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1980-04-27T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1980-04-27T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1980-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1980-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1980-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1980-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1980-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1980-04-27T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1980-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1980-10-26T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1980-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1980-10-26T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1981" : function (t) { t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1981-04-26T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1981-04-26T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1981-10-25T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1981-10-25T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1981-04-26T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1981-04-26T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1981-04-26T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1981-04-26T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1981-10-25T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1981-10-25T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1981-10-25T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1981-10-25T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1982" : function (t) { t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1982-04-25T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1982-04-25T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1982-10-31T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1982-10-31T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1982-04-25T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1982-04-25T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1982-04-25T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1982-04-25T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1982-10-31T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1982-10-31T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1982-10-31T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1982-10-31T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1983" : function (t) { t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1983-04-24T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1983-04-24T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1983-10-30T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1983-10-30T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1983-04-24T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1983-04-24T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1983-04-24T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1983-04-24T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1983-10-30T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1983-10-30T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1983-10-30T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1983-10-30T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1984" : function (t) { t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1984-04-29T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1984-04-29T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1984-10-28T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1984-10-28T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1984-04-29T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1984-04-29T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1984-04-29T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1984-04-29T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1984-10-28T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1984-10-28T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1984-10-28T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1984-10-28T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1985" : function (t) { t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1985-04-28T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1985-04-28T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1985-10-27T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1985-10-27T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1985-04-28T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1985-04-28T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1985-04-28T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1985-04-28T07:00:00+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1985-10-27T05:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 240, "1985-10-27T05:59:59+00:00 should be 240 minutes offset in EDT"); t.equal(moment("1985-10-27T06:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1985-10-27T06:00:00+00:00 should be 300 minutes offset in EST"); t.done(); }, "1986" : function (t) { t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1986-04-27T06:59:59+00:00 should be 01:59:59 EST"); t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "03:00:00", "1986-04-27T07:00:00+00:00 should be 03:00:00 EDT"); t.equal(moment("1986-10-26T05:59:59+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:59:59", "1986-10-26T05:59:59+00:00 should be 01:59:59 EDT"); t.equal(moment("1986-10-26T06:00:00+00:00").tz("America/Kentucky/Louisville").format("HH:mm:ss"), "01:00:00", "1986-10-26T06:00:00+00:00 should be 01:00:00 EST"); t.equal(moment("1986-04-27T06:59:59+00:00").tz("America/Kentucky/Louisville").zone(), 300, "1986-04-27T06:59:59+00:00 should be 300 minutes offset in EST"); t.equal(moment("1986-04-27T07:00:00+00:00").tz("America/Kentucky/Louisville").zone(), 240, "