d3/test/time
Mike Bostock 077411a236 Add interval.range, and time.scale.nice.
This commit provides a standard interface for time intervals:

  interval.floor(date)
  interval.ceil(date)
  interval.offset(date, k)
  interval.range(start, stop, step)

All local-time intervals (such as d3.time.day) have a UTC-equivalent interval,
available as interval.utc (such as d3.time.day.utc).

Fixes #463. Note that for the time.scale, an interval function is required to
nice (such as d3.time.day). In the future, we might relax that to allow a count
of ticks, similar to the ticks method, but in that case we'd also need the
ability to floor to a given tick number (e.g., every other week) and likewise
for ceil. This seems like a reasonable first implementation.
2012-02-18 22:56:54 -08:00
..
day-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
days-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
format-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
hour-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
hours-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
minute-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
minutes-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
month-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
months-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
scale-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
second-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
seconds-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
week-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
weeks-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00
year-test.js Add interval.range, and time.scale.nice. 2012-02-18 22:56:54 -08:00
years-test.js Consolidate everything into d3.v2.js. 2012-02-18 14:04:01 -08:00