(opts)
| 17014 | return { parsedOptions: opts }; |
| 17015 | } |
| 17016 | function 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 | } |
| 17031 | function parseString(rfcString) { |
| 17032 | var options = rfcString.split("\n").map(parseLine).filter(function(x) { |
| 17033 | return x !== null; |
no test coverage detected