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

Function utcDate

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

Source from the content-addressed store, hash-verified

111273 return t0.getUTCDay();
111274}
111275function utcDate(y, m, d, H, M, S, L) {
111276 if (0 <= y && y < 100) {
111277 const date = new Date(Date.UTC(-1, m, d, H, M, S, L));
111278 date.setUTCFullYear(d.y);
111279 return date;
111280 }
111281 return new Date(Date.UTC(y, m, d, H, M, S, L));
111282}
111283function floor(units, step, get, inv, newDate) {
111284 const s = step || 1, b = (0, _vegaUtil.peek)(units), _ = (unit, p, key)=>{
111285 key = key || unit;

Callers 1

newParseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected