(formats)
| 8335 | return new Date(t); |
| 8336 | } |
| 8337 | function d3_time_scaleFormat(formats) { |
| 8338 | return function(date) { |
| 8339 | var i = formats.length - 1, f = formats[i]; |
| 8340 | while (!f[1](date)) f = formats[--i]; |
| 8341 | return f[0](date); |
| 8342 | }; |
| 8343 | } |
| 8344 | function d3_time_scaleSetYear(y) { |
| 8345 | var d = new Date(y, 0, 1); |
| 8346 | d.setFullYear(y); |