comment
This commit is contained in:
parent
074a769e76
commit
60bddd29fd
@ -412,20 +412,16 @@
|
|||||||
},
|
},
|
||||||
isDST: function() {
|
isDST: function() {
|
||||||
/*
|
/*
|
||||||
http://en.wikipedia.org/wiki/Daylight_saving_time_in_the_United_States
|
|
||||||
Since 2007, daylight saving time starts on the second Sunday of March
|
|
||||||
and ends on the first Sunday of November, with all time changes taking
|
|
||||||
place at 2:00 AM (0200) local time.
|
|
||||||
|
|
||||||
http://en.wikipedia.org/wiki/Eastern_Time_Zone
|
http://en.wikipedia.org/wiki/Eastern_Time_Zone
|
||||||
Its UTC time offset is −5 hrs (UTC−05) during standard time and −4
|
Its UTC time offset is −5 hrs (UTC−05) during standard time and −4
|
||||||
hrs (UTC−04) during daylight saving time.
|
hrs (UTC−04) during daylight saving time.
|
||||||
|
|
||||||
Standard time:
|
Since 2007, the local time changes at 02:00 EST to 03:00 EDT on the second
|
||||||
0200 EST (UTC-05) = 0700 UTC
|
Sunday in March and returns at 02:00 EDT to 01:00 EST on the first Sunday
|
||||||
|
in November, in the U.S. as well as in Canada.
|
||||||
|
|
||||||
Dalyight saving time:
|
0200 EST (UTC-05) = 0700 UTC
|
||||||
0200 EST (UTC-04) = 0600 UTC
|
0200 EDT (UTC-04) = 0600 UTC
|
||||||
*/
|
*/
|
||||||
var D, date, day, hours, month, sunday;
|
var D, date, day, hours, month, sunday;
|
||||||
D = new Date();
|
D = new Date();
|
||||||
|
|||||||
@ -285,20 +285,16 @@ $.extend $,
|
|||||||
el.removeEventListener eventType, handler, false
|
el.removeEventListener eventType, handler, false
|
||||||
isDST: ->
|
isDST: ->
|
||||||
###
|
###
|
||||||
http://en.wikipedia.org/wiki/Daylight_saving_time_in_the_United_States
|
|
||||||
Since 2007, daylight saving time starts on the second Sunday of March
|
|
||||||
and ends on the first Sunday of November, with all time changes taking
|
|
||||||
place at 2:00 AM (0200) local time.
|
|
||||||
|
|
||||||
http://en.wikipedia.org/wiki/Eastern_Time_Zone
|
http://en.wikipedia.org/wiki/Eastern_Time_Zone
|
||||||
Its UTC time offset is −5 hrs (UTC−05) during standard time and −4
|
Its UTC time offset is −5 hrs (UTC−05) during standard time and −4
|
||||||
hrs (UTC−04) during daylight saving time.
|
hrs (UTC−04) during daylight saving time.
|
||||||
|
|
||||||
Standard time:
|
Since 2007, the local time changes at 02:00 EST to 03:00 EDT on the second
|
||||||
0200 EST (UTC-05) = 0700 UTC
|
Sunday in March and returns at 02:00 EDT to 01:00 EST on the first Sunday
|
||||||
|
in November, in the U.S. as well as in Canada.
|
||||||
|
|
||||||
Dalyight saving time:
|
0200 EST (UTC-05) = 0700 UTC
|
||||||
0200 EST (UTC-04) = 0600 UTC
|
0200 EDT (UTC-04) = 0600 UTC
|
||||||
###
|
###
|
||||||
|
|
||||||
D = new Date()
|
D = new Date()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user