1
d3.time.hour = d3_time_interval(function(date) {
2
var timezone = date.getTimezoneOffset() / 60;
3
return new d3_time((Math.floor(date / 36e5 - timezone) + timezone) * 36e5);
4
}, function(date, offset) {
5
date.setTime(date.getTime() + Math.floor(offset) * 36e5); // DST breaks setHours
7
return date.getHours();
10
d3.time.hours = d3.time.hour.range;
11
d3.time.hours.utc = d3.time.hour.utc.range;