MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / fromOrdinal

Function fromOrdinal

codebase/sources/dhtmlxscheduler.js:15818–15820  ·  view source on GitHub ↗
(ordinal)

Source from the content-addressed store, hash-verified

15816 return daysBetween(date, ORDINAL_BASE);
15817 };
15818 var fromOrdinal = function(ordinal) {
15819 return new Date(ORDINAL_BASE.getTime() + ordinal * ONE_DAY);
15820 };
15821 var getMonthDays = function(date) {
15822 var month = date.getUTCMonth();
15823 return month === 1 && isLeapYear(date.getUTCFullYear()) ? 29 : MONTH_DAYS[month];

Callers 2

buildPoslistFunction · 0.70
iterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected