moment-timezone
Version:
Timezone plugin for Moment.js.
570 lines (446 loc) • 53.9 kB
JavaScript
var moment = require("../../index");
exports["America/Cancun"] = {
"1922" : function (t) {
t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "00:12:55", "1922-01-01T05:59:59+00:00 should be 00:12:55 LMT");
t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "00:00:00", "1922-01-01T06:00:00+00:00 should be 00:00:00 CST");
t.equal(moment("1922-01-01T05:59:59+00:00").tz("America/Cancun").zone(), 20824 / 60, "1922-01-01T05:59:59+00:00 should be 20824 / 60 minutes offset in LMT");
t.equal(moment("1922-01-01T06:00:00+00:00").tz("America/Cancun").zone(), 360, "1922-01-01T06:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"1981" : function (t) {
t.equal(moment("1981-12-23T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "23:59:59", "1981-12-23T05:59:59+00:00 should be 23:59:59 CST");
t.equal(moment("1981-12-23T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1981-12-23T06:00:00+00:00 should be 01:00:00 EST");
t.equal(moment("1981-12-23T05:59:59+00:00").tz("America/Cancun").zone(), 360, "1981-12-23T05:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("1981-12-23T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1981-12-23T06:00:00+00:00 should be 300 minutes offset in EST");
t.done();
},
"1996" : function (t) {
t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1996-04-07T06:59:59+00:00 should be 01:59:59 EST");
t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1996-04-07T07:00:00+00:00 should be 03:00:00 EDT");
t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1996-10-27T05:59:59+00:00 should be 01:59:59 EDT");
t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1996-10-27T06:00:00+00:00 should be 01:00:00 EST");
t.equal(moment("1996-04-07T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1996-04-07T06:59:59+00:00 should be 300 minutes offset in EST");
t.equal(moment("1996-04-07T07:00:00+00:00").tz("America/Cancun").zone(), 240, "1996-04-07T07:00:00+00:00 should be 240 minutes offset in EDT");
t.equal(moment("1996-10-27T05:59:59+00:00").tz("America/Cancun").zone(), 240, "1996-10-27T05:59:59+00:00 should be 240 minutes offset in EDT");
t.equal(moment("1996-10-27T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1996-10-27T06:00:00+00:00 should be 300 minutes offset in EST");
t.done();
},
"1997" : function (t) {
t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1997-04-06T06:59:59+00:00 should be 01:59:59 EST");
t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1997-04-06T07:00:00+00:00 should be 03:00:00 EDT");
t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1997-10-26T05:59:59+00:00 should be 01:59:59 EDT");
t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1997-10-26T06:00:00+00:00 should be 01:00:00 EST");
t.equal(moment("1997-04-06T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1997-04-06T06:59:59+00:00 should be 300 minutes offset in EST");
t.equal(moment("1997-04-06T07:00:00+00:00").tz("America/Cancun").zone(), 240, "1997-04-06T07:00:00+00:00 should be 240 minutes offset in EDT");
t.equal(moment("1997-10-26T05:59:59+00:00").tz("America/Cancun").zone(), 240, "1997-10-26T05:59:59+00:00 should be 240 minutes offset in EDT");
t.equal(moment("1997-10-26T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1997-10-26T06:00:00+00:00 should be 300 minutes offset in EST");
t.done();
},
"1998" : function (t) {
t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1998-04-05T06:59:59+00:00 should be 01:59:59 EST");
t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1998-04-05T07:00:00+00:00 should be 03:00:00 EDT");
t.equal(moment("1998-08-02T05:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1998-08-02T05:59:59+00:00 should be 01:59:59 EDT");
t.equal(moment("1998-08-02T06:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1998-08-02T06:00:00+00:00 should be 01:00:00 CDT");
t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1998-10-25T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1998-10-25T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("1998-04-05T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1998-04-05T06:59:59+00:00 should be 300 minutes offset in EST");
t.equal(moment("1998-04-05T07:00:00+00:00").tz("America/Cancun").zone(), 240, "1998-04-05T07:00:00+00:00 should be 240 minutes offset in EDT");
t.equal(moment("1998-08-02T05:59:59+00:00").tz("America/Cancun").zone(), 240, "1998-08-02T05:59:59+00:00 should be 240 minutes offset in EDT");
t.equal(moment("1998-08-02T06:00:00+00:00").tz("America/Cancun").zone(), 300, "1998-08-02T06:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("1998-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1998-10-25T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("1998-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "1998-10-25T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"1999" : function (t) {
t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1999-04-04T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "1999-04-04T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "1999-10-31T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "1999-10-31T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("1999-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "1999-04-04T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("1999-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "1999-04-04T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("1999-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "1999-10-31T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("1999-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "1999-10-31T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2000" : function (t) {
t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2000-04-02T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2000-04-02T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2000-10-29T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2000-10-29T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2000-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2000-04-02T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2000-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2000-04-02T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2000-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2000-10-29T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2000-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2000-10-29T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2001" : function (t) {
t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2001-05-06T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2001-05-06T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2001-09-30T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2001-09-30T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2001-05-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2001-05-06T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2001-05-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2001-05-06T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2001-09-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2001-09-30T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2001-09-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2001-09-30T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2002" : function (t) {
t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2002-04-07T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2002-04-07T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2002-10-27T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2002-10-27T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2002-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2002-04-07T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2002-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2002-04-07T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2002-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2002-10-27T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2002-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2002-10-27T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2003" : function (t) {
t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2003-04-06T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2003-04-06T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2003-10-26T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2003-10-26T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2003-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2003-04-06T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2003-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2003-04-06T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2003-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2003-10-26T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2003-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2003-10-26T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2004" : function (t) {
t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2004-04-04T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2004-04-04T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2004-10-31T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2004-10-31T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2004-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2004-04-04T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2004-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2004-04-04T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2004-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2004-10-31T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2004-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2004-10-31T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2005" : function (t) {
t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2005-04-03T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2005-04-03T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2005-10-30T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2005-10-30T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2005-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2005-04-03T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2005-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2005-04-03T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2005-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2005-10-30T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2005-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2005-10-30T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2006" : function (t) {
t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2006-04-02T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2006-04-02T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2006-10-29T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2006-10-29T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2006-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2006-04-02T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2006-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2006-04-02T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2006-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2006-10-29T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2006-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2006-10-29T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2007" : function (t) {
t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2007-04-01T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2007-04-01T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2007-10-28T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2007-10-28T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2007-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2007-04-01T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2007-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2007-04-01T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2007-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2007-10-28T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2007-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2007-10-28T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2008" : function (t) {
t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2008-04-06T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2008-04-06T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2008-10-26T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2008-10-26T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2008-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2008-04-06T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2008-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2008-04-06T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2008-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2008-10-26T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2008-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2008-10-26T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2009" : function (t) {
t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2009-04-05T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2009-04-05T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2009-10-25T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2009-10-25T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2009-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2009-04-05T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2009-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2009-04-05T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2009-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2009-10-25T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2009-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2009-10-25T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2010" : function (t) {
t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2010-04-04T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2010-04-04T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2010-10-31T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2010-10-31T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2010-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2010-04-04T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2010-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2010-04-04T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2010-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2010-10-31T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2010-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2010-10-31T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2011" : function (t) {
t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2011-04-03T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2011-04-03T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2011-10-30T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2011-10-30T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2011-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2011-04-03T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2011-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2011-04-03T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2011-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2011-10-30T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2011-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2011-10-30T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2012" : function (t) {
t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2012-04-01T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2012-04-01T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2012-10-28T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2012-10-28T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2012-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2012-04-01T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2012-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2012-04-01T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2012-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2012-10-28T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2012-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2012-10-28T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2013" : function (t) {
t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2013-04-07T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2013-04-07T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2013-10-27T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2013-10-27T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2013-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2013-04-07T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2013-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2013-04-07T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2013-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2013-10-27T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2013-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2013-10-27T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2014" : function (t) {
t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2014-04-06T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2014-04-06T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2014-10-26T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2014-10-26T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2014-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2014-04-06T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2014-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2014-04-06T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2014-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2014-10-26T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2014-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2014-10-26T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2015" : function (t) {
t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2015-04-05T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2015-04-05T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2015-10-25T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2015-10-25T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2015-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2015-04-05T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2015-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2015-04-05T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2015-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2015-10-25T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2015-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2015-10-25T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2016" : function (t) {
t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2016-04-03T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2016-04-03T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2016-10-30T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2016-10-30T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2016-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2016-04-03T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2016-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2016-04-03T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2016-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2016-10-30T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2016-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2016-10-30T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2017" : function (t) {
t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2017-04-02T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2017-04-02T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2017-10-29T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2017-10-29T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2017-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2017-04-02T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2017-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2017-04-02T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2017-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2017-10-29T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2017-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2017-10-29T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2018" : function (t) {
t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2018-04-01T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2018-04-01T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2018-10-28T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2018-10-28T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2018-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2018-04-01T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2018-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2018-04-01T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2018-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2018-10-28T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2018-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2018-10-28T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2019" : function (t) {
t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2019-04-07T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2019-04-07T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2019-10-27T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2019-10-27T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2019-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2019-04-07T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2019-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2019-04-07T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2019-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2019-10-27T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2019-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2019-10-27T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2020" : function (t) {
t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2020-04-05T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2020-04-05T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2020-10-25T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2020-10-25T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2020-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2020-04-05T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2020-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2020-04-05T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2020-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2020-10-25T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2020-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2020-10-25T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2021" : function (t) {
t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2021-04-04T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2021-04-04T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2021-10-31T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2021-10-31T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2021-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2021-04-04T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2021-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2021-04-04T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2021-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2021-10-31T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2021-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2021-10-31T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2022" : function (t) {
t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2022-04-03T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2022-04-03T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2022-10-30T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2022-10-30T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2022-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2022-04-03T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2022-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2022-04-03T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2022-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2022-10-30T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2022-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2022-10-30T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2023" : function (t) {
t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2023-04-02T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2023-04-02T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2023-10-29T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2023-10-29T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2023-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2023-04-02T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2023-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2023-04-02T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2023-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2023-10-29T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2023-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2023-10-29T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2024" : function (t) {
t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2024-04-07T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2024-04-07T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2024-10-27T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2024-10-27T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2024-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2024-04-07T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2024-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2024-04-07T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2024-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2024-10-27T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2024-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2024-10-27T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2025" : function (t) {
t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2025-04-06T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2025-04-06T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2025-10-26T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2025-10-26T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2025-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2025-04-06T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2025-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2025-04-06T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2025-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2025-10-26T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2025-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2025-10-26T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2026" : function (t) {
t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2026-04-05T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2026-04-05T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2026-10-25T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2026-10-25T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2026-04-05T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2026-04-05T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2026-04-05T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2026-04-05T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2026-10-25T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2026-10-25T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2026-10-25T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2026-10-25T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2027" : function (t) {
t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2027-04-04T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2027-04-04T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2027-10-31T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2027-10-31T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2027-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2027-04-04T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2027-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2027-04-04T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2027-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2027-10-31T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2027-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2027-10-31T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2028" : function (t) {
t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2028-04-02T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2028-04-02T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2028-10-29T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2028-10-29T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2028-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2028-04-02T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2028-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2028-04-02T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2028-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2028-10-29T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2028-10-29T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2028-10-29T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2029" : function (t) {
t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2029-04-01T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2029-04-01T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2029-10-28T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2029-10-28T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2029-04-01T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2029-04-01T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2029-04-01T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2029-04-01T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2029-10-28T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2029-10-28T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2029-10-28T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2029-10-28T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2030" : function (t) {
t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2030-04-07T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2030-04-07T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2030-10-27T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2030-10-27T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2030-04-07T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2030-04-07T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2030-04-07T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2030-04-07T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2030-10-27T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2030-10-27T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2030-10-27T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2030-10-27T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2031" : function (t) {
t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2031-04-06T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2031-04-06T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2031-10-26T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2031-10-26T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2031-04-06T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2031-04-06T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2031-04-06T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2031-04-06T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2031-10-26T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2031-10-26T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2031-10-26T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2031-10-26T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2032" : function (t) {
t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2032-04-04T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2032-04-04T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2032-10-31T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2032-10-31T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2032-04-04T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2032-04-04T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2032-04-04T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2032-04-04T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2032-10-31T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2032-10-31T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2032-10-31T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2032-10-31T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2033" : function (t) {
t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2033-04-03T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2033-04-03T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2033-10-30T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2033-10-30T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2033-04-03T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2033-04-03T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2033-04-03T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2033-04-03T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2033-10-30T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2033-10-30T06:59:59+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2033-10-30T07:00:00+00:00").tz("America/Cancun").zone(), 360, "2033-10-30T07:00:00+00:00 should be 360 minutes offset in CST");
t.done();
},
"2034" : function (t) {
t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2034-04-02T07:59:59+00:00 should be 01:59:59 CST");
t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "03:00:00", "2034-04-02T08:00:00+00:00 should be 03:00:00 CDT");
t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:59:59", "2034-10-29T06:59:59+00:00 should be 01:59:59 CDT");
t.equal(moment("2034-10-29T07:00:00+00:00").tz("America/Cancun").format("HH:mm:ss"), "01:00:00", "2034-10-29T07:00:00+00:00 should be 01:00:00 CST");
t.equal(moment("2034-04-02T07:59:59+00:00").tz("America/Cancun").zone(), 360, "2034-04-02T07:59:59+00:00 should be 360 minutes offset in CST");
t.equal(moment("2034-04-02T08:00:00+00:00").tz("America/Cancun").zone(), 300, "2034-04-02T08:00:00+00:00 should be 300 minutes offset in CDT");
t.equal(moment("2034-10-29T06:59:59+00:00").tz("America/Cancun").zone(), 300, "2034-10-29T06:59:59+00:00 should be 300 minutes offset in CDT");