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

Function formatWeekNumberISO

docs/app/js/sanddance-app.js:112747–112750  ·  view source on GitHub ↗
(d, p)

Source from the content-addressed store, hash-verified

112745 return day >= 4 || day === 0 ? (0, _d3Time.timeThursday)(d) : (0, _d3Time.timeThursday).ceil(d);
112746}
112747function formatWeekNumberISO(d, p) {
112748 d = dISO(d);
112749 return pad((0, _d3Time.timeThursday).count((0, _d3Time.timeYear)(d), d) + ((0, _d3Time.timeYear)(d).getDay() === 4), p, 2);
112750}
112751function formatWeekdayNumberSunday(d) {
112752 return d.getDay();
112753}

Callers

nothing calls this directly

Calls 2

dISOFunction · 0.70
padFunction · 0.70

Tested by

no test coverage detected