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

Function isLeapYear

codebase/sources/dhtmlxscheduler.js:15800–15802  ·  view source on GitHub ↗
(year)

Source from the content-addressed store, hash-verified

15798 var ORDINAL_BASE = datetime(1970, 1, 1);
15799 var PY_WEEKDAYS = [6, 0, 1, 2, 3, 4, 5];
15800 var isLeapYear = function(year) {
15801 return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
15802 };
15803 var isDate = function(value) {
15804 return value instanceof Date;
15805 };

Callers 3

getMonthDaysFunction · 0.70
rebuildYearFunction · 0.70
baseYearMasksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected