This commit is contained in:
James Campos 2011-11-07 22:02:11 -08:00
parent 074a769e76
commit 60bddd29fd
2 changed files with 10 additions and 18 deletions

View File

@ -412,20 +412,16 @@
},
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
Its UTC time offset is 5 hrs (UTC05) during standard time and 4
hrs (UTC04) during daylight saving time.
Standard time:
0200 EST (UTC-05) = 0700 UTC
Since 2007, the local time changes at 02:00 EST to 03:00 EDT on the second
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-04) = 0600 UTC
0200 EST (UTC-05) = 0700 UTC
0200 EDT (UTC-04) = 0600 UTC
*/
var D, date, day, hours, month, sunday;
D = new Date();

View File

@ -285,20 +285,16 @@ $.extend $,
el.removeEventListener eventType, handler, false
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
Its UTC time offset is 5 hrs (UTC05) during standard time and 4
hrs (UTC04) during daylight saving time.
Standard time:
0200 EST (UTC-05) = 0700 UTC
Since 2007, the local time changes at 02:00 EST to 03:00 EDT on the second
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-04) = 0600 UTC
0200 EST (UTC-05) = 0700 UTC
0200 EDT (UTC-04) = 0600 UTC
###
D = new Date()