source:
Dev/trunk/d3/src/time/months.js
@
76
Last change on this file since 76 was 76, checked in by fpvanagthoven, 14 years ago | |
---|---|
File size: 320 bytes |
Rev | Line | |
---|---|---|
[76] | 1 | d3.time.months = d3_time_range(d3.time.month, function(date) { |
2 | date.setMonth(date.getMonth() + 1); | |
3 | }, function(date) { | |
4 | return date.getMonth(); | |
5 | }); | |
6 | ||
7 | d3.time.months.utc = d3_time_range(d3.time.month.utc, function(date) { | |
8 | date.setUTCMonth(date.getUTCMonth() + 1); | |
9 | }, function(date) { | |
10 | return date.getUTCMonth(); | |
11 | }); |
Note: See TracBrowser
for help on using the repository browser.