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

Function dISO

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

Source from the content-addressed store, hash-verified

112741 return pad((0, _d3Time.timeSunday).count((0, _d3Time.timeYear)(d) - 1, d), p, 2);
112742}
112743function dISO(d) {
112744 var day = d.getDay();
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);

Callers 2

formatWeekNumberISOFunction · 0.70
formatYearISOFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected