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

Function utcweek

docs/app/js/sanddance-app.js:111260–111262  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

111258 return utcDayOfYear(new Date(d));
111259}
111260function utcweek(d) {
111261 return utcWeekNum(new Date(d));
111262}
111263function utcDayOfYear(d) {
111264 const y = Date.UTC(d.getUTCFullYear(), 0, 1);
111265 return (0, _d3Time.utcDay).count(y - 1, d);

Callers

nothing calls this directly

Calls 1

utcWeekNumFunction · 0.70

Tested by

no test coverage detected