(formats)
| 8713 | return new Date(t); |
| 8714 | } |
| 8715 | function d3_time_scaleFormat(formats) { |
| 8716 | return function(date) { |
| 8717 | var i = formats.length - 1, f = formats[i]; |
| 8718 | while (!f[1](date)) f = formats[--i]; |
| 8719 | return f[0](date); |
| 8720 | }; |
| 8721 | } |
| 8722 | function d3_time_scaleSetYear(y) { |
| 8723 | var d = new Date(y, 0, 1); |
| 8724 | d.setFullYear(y); |