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

Function buildTimeset

codebase/sources/dhtmlxscheduler.es.js:17016–17030  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

17014 return { parsedOptions: opts };
17015}
17016function buildTimeset(opts) {
17017 var millisecondModulo = opts.dtstart.getTime() % 1e3;
17018 if (!freqIsDailyOrGreater(opts.freq)) {
17019 return [];
17020 }
17021 var timeset = [];
17022 opts.byhour.forEach(function(hour) {
17023 opts.byminute.forEach(function(minute) {
17024 opts.bysecond.forEach(function(second) {
17025 timeset.push(new Time(hour, minute, second, millisecondModulo));
17026 });
17027 });
17028 });
17029 return timeset;
17030}
17031function parseString(rfcString) {
17032 var options = rfcString.split("\n").map(parseLine).filter(function(x) {
17033 return x !== null;

Callers 1

makeTimesetFunction · 0.70

Calls 1

freqIsDailyOrGreaterFunction · 0.70

Tested by

no test coverage detected