UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

15 lines (14 loc) 715 B
({ name: "date.timezone.Asia-Bangkok", runTest: function(t){ var tz = "Asia/Bangkok"; doh.checkDate({tzOffset: -402.066666666667, tzAbbr: "BMT"}, -2147483648000, tz, 1); doh.checkDate({tzOffset: -402.066666666667, tzAbbr: "BMT"}, -2147397248000, tz, 1); doh.checkDate({tzOffset: -402.066666666667, tzAbbr: "BMT"}, -1570084925000, tz, 1); doh.checkDate({tzOffset: -420, tzAbbr: "ICT"}, -1570084924000, tz, 1); doh.checkDate({tzOffset: -420, tzAbbr: "ICT"}, 2147397247000, tz, 1); doh.checkDate({tzOffset: -420, tzAbbr: "ICT"}, 2147483647000, tz, 1); doh.checkDate({tzOffset: -420, tzAbbr: "ICT"}, 1231151400000, tz, 0); doh.checkDate({tzOffset: -420, tzAbbr: "ICT"}, 1246789800000, tz, 0); } })