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

Function getMonthDays

codebase/sources/dhtmlxscheduler.js:15821–15824  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

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];
15824 };
15825 var getWeekday = function(date) {
15826 return PY_WEEKDAYS[date.getUTCDay()];
15827 };

Callers 1

monthRangeFunction · 0.70

Calls 1

isLeapYearFunction · 0.70

Tested by

no test coverage detected