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

Function d3_time_formatIsoNative

explainshell/web/static/js/d3.v3.js:8245–8247  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

8243 var d3_time_formatIso = d3.time.format.utc("%Y-%m-%dT%H:%M:%S.%LZ");
8244 d3.time.format.iso = Date.prototype.toISOString && +new Date("2000-01-01T00:00:00.000Z") ? d3_time_formatIsoNative : d3_time_formatIso;
8245 function d3_time_formatIsoNative(date) {
8246 return date.toISOString();
8247 }
8248 d3_time_formatIsoNative.parse = function(string) {
8249 var date = new Date(string);
8250 return isNaN(date) ? null : date;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected