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

Function makeTimeset

codebase/sources/dhtmlxscheduler.js:17759–17768  ·  view source on GitHub ↗
(ii, counterDate, options)

Source from the content-addressed store, hash-verified

17757 return filtered;
17758 }
17759 function makeTimeset(ii, counterDate, options) {
17760 var freq = options.freq, byhour = options.byhour, byminute = options.byminute, bysecond = options.bysecond;
17761 if (freqIsDailyOrGreater(freq)) {
17762 return buildTimeset(options);
17763 }
17764 if (freq >= RRule.HOURLY && notEmpty(byhour) && !includes(byhour, counterDate.hour) || freq >= RRule.MINUTELY && notEmpty(byminute) && !includes(byminute, counterDate.minute) || freq >= RRule.SECONDLY && notEmpty(bysecond) && !includes(bysecond, counterDate.second)) {
17765 return [];
17766 }
17767 return ii.gettimeset(freq)(counterDate.hour, counterDate.minute, counterDate.second, counterDate.millisecond);
17768 }
17769 var Days = { MO: new Weekday(0), TU: new Weekday(1), WE: new Weekday(2), TH: new Weekday(3), FR: new Weekday(4), SA: new Weekday(5), SU: new Weekday(6) };
17770 var DEFAULT_OPTIONS$1 = { freq: Frequency.YEARLY, dtstart: null, interval: 1, wkst: Days.MO, count: null, until: null, tzid: null, bysetpos: null, bymonth: null, bymonthday: null, bynmonthday: null, byyearday: null, byweekno: null, byweekday: null, bynweekday: null, byhour: null, byminute: null, bysecond: null, byeaster: null };
17771 var defaultKeys = Object.keys(DEFAULT_OPTIONS$1);

Callers 1

iterFunction · 0.70

Calls 4

freqIsDailyOrGreaterFunction · 0.70
buildTimesetFunction · 0.70
notEmptyFunction · 0.70
includesFunction · 0.70

Tested by

no test coverage detected