MCPcopy Create free account
hub / github.com/idank/explainshell / d3_time_scaleFormat

Function d3_time_scaleFormat

explainshell/web/static/js/d3.v3.js:8337–8343  ·  view source on GitHub ↗
(formats)

Source from the content-addressed store, hash-verified

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

Callers 1

d3.v3.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected