MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / d3_time_scaleFormat

Function d3_time_scaleFormat

d3-3.2.8/d3.js:8715–8721  ·  view source on GitHub ↗
(formats)

Source from the content-addressed store, hash-verified

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);

Callers 1

d3.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected