MCPcopy Create free account
hub / github.com/breck7/scroll / utcDate

Function utcDate

external/.d3.js:16006–16013  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

16004}
16005
16006function utcDate(d) {
16007 if (0 <= d.y && d.y < 100) {
16008 var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));
16009 date.setUTCFullYear(d.y);
16010 return date;
16011 }
16012 return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));
16013}
16014
16015function newDate(y, m, d) {
16016 return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0};

Callers 1

newParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected