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

Function getMonthDays

codebase/sources/dhtmlxscheduler.es.js:15817–15820  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

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

Callers 1

monthRangeFunction · 0.70

Calls 1

isLeapYearFunction · 0.70

Tested by

no test coverage detected