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

Function datetime

codebase/sources/dhtmlxscheduler.es.js:15779–15790  ·  view source on GitHub ↗
(y, m, d, h, i, s)

Source from the content-addressed store, hash-verified

15777 return notEmpty(arr) && arr.indexOf(val) !== -1;
15778};
15779var datetime = function(y, m, d, h, i, s) {
15780 if (h === void 0) {
15781 h = 0;
15782 }
15783 if (i === void 0) {
15784 i = 0;
15785 }
15786 if (s === void 0) {
15787 s = 0;
15788 }
15789 return new Date(Date.UTC(y, m - 1, d, h, i, s));
15790};
15791var MONTH_DAYS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
15792var ONE_DAY = 1e3 * 60 * 60 * 24;
15793var MAXYEAR = 9999;

Callers 4

monthRangeFunction · 0.70
rebuildYearFunction · 0.70
baseYearMasksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected