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

Function buildTimeset

codebase/sources/dhtmlxscheduler.js:17020–17034  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

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

Callers 1

makeTimesetFunction · 0.70

Calls 1

freqIsDailyOrGreaterFunction · 0.70

Tested by

no test coverage detected