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

Function _addDate

codebase/sources/dhtmlxscheduler.js:18228–18236  ·  view source on GitHub ↗
(date, collection)

Source from the content-addressed store, hash-verified

18226 }
18227 }
18228 function _addDate(date, collection) {
18229 if (!(date instanceof Date)) {
18230 throw new TypeError(String(date) + " is not Date instance");
18231 }
18232 if (!includes(collection.map(Number), Number(date))) {
18233 collection.push(date);
18234 sort(collection);
18235 }
18236 }
18237 function rdatesToString(param, rdates, tzid) {
18238 var isUTC = !tzid || tzid.toUpperCase() === "UTC";
18239 var header = isUTC ? "".concat(param, ":") : "".concat(param, ";TZID=").concat(tzid, ":");

Callers 1

dhtmlxscheduler.jsFile · 0.70

Calls 2

includesFunction · 0.70
sortFunction · 0.70

Tested by

no test coverage detected