(opts)
| 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; |
no test coverage detected