source: Dev/trunk/d3/src/time/hours.js @ 76

Last change on this file since 76 was 76, checked in by fpvanagthoven, 14 years ago

d3

File size: 309 bytes
Line 
1d3.time.hours = d3_time_range(d3.time.hour, d3_time_hoursStep, function(date) {
2  return date.getHours();
3});
4
5d3.time.hours.utc = d3_time_range(d3.time.hour.utc, d3_time_hoursStep, function(date) {
6  return date.getUTCHours();
7});
8
9function d3_time_hoursStep(date) {
10  date.setTime(date.getTime() + 36e5);
11}
Note: See TracBrowser for help on using the repository browser.