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

Function localDate

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

Source from the content-addressed store, hash-verified

15995const [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute);
15996
15997function localDate(d) {
15998 if (0 <= d.y && d.y < 100) {
15999 var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);
16000 date.setFullYear(d.y);
16001 return date;
16002 }
16003 return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);
16004}
16005
16006function utcDate(d) {
16007 if (0 <= d.y && d.y < 100) {

Callers 1

newParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected