You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don’t think any current DST algorithm has non-whole-hour offset, but it was definitely true in the past:
Today clocks are almost always set one hour back or ahead, but throughout history there have been several variations, like half adjustment (30 minutes) or double adjustment (two hours), and adjustments of 20 and 40 minutes have also been used. A two-hour adjustment was used in several countries during the 1940s and elsewhere at times.
A half adjustment was sometimes used in New Zealand in the first half of the 20th century. Australia's Lord Howe Island (UTC+10:30) follows a DST schedule in which clocks are moved 30 minutes forward to UTC+11, which is Australian Eastern Daylight Time (AEDT) during DST.
The text was updated successfully, but these errors were encountered:
mbostock
changed the title
Hours may not be 60 minutes if DST offset is not a whole hour.
Hours may not be 60 minutes if DST is not a whole hour.
Jun 29, 2015
mbostock
changed the title
Hours may not be 60 minutes if DST is not a whole hour.
Hours may not be 60 minutes due to DST.
Jun 29, 2015
TZ=Australia/Lord_Howe is an example of a timezone currently using a half-hour DST offset. However, it does not appear to be implemented correctly on Mac OS X:
TZ=Australia/Lord_Howe node
> new Date
Tue Jun 30 2015 02:26:01 GMT+1030 (LHST)
> new Date(2015, 2, 29)
Sun Mar 29 2015 00:00:00 GMT+1130 (LHDT)
With apologies to the estimated 347 people living on Lord Howe Island but I think this is probably not worth fixing. It’s tempting to use date.setHours(date.getHours() + 1) to increment the hour field, but this isn’t implement consistently on some browsers, which could cause interval.range to go into an infinite loop.
I don’t think any current DST algorithm has non-whole-hour offset, but it was definitely true in the past:
The text was updated successfully, but these errors were encountered: