MCPcopy Create free account
hub / github.com/microsoft/SandDance / localDate

Function localDate

docs/app/js/sanddance-app.js:111249–111256  ·  view source on GitHub ↗
(y, m, d, H, M, S, L)

Source from the content-addressed store, hash-verified

111247 return localYear(y).getDay();
111248}
111249function localDate(y, m, d, H, M, S, L) {
111250 if (0 <= y && y < 100) {
111251 const date = new Date(-1, m, d, H, M, S, L);
111252 date.setFullYear(y);
111253 return date;
111254 }
111255 return new Date(y, m, d, H, M, S, L);
111256}
111257function utcdayofyear(d) {
111258 return utcDayOfYear(new Date(d));
111259}

Callers 1

newParseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected