How to use the rrule.RRule.optionsToString function in rrule

To help you get started, we’ve selected a few rrule examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chef / automate / components / automate-ui / src / app / pages / job-add / job-add.component.ts View on Github external
ruleOpts['until'] = new Date(
        parseInt(end.datetime.year, 10),
        parseInt(end.datetime.month, 10),
        parseInt(end.datetime.date, 10),
        parseInt(end.datetime.hour, 10),
        parseInt(end.datetime.minute, 10)
      );
    }


    if (repeat.include) {
      ruleOpts['freq'] = repeat.freq;
      ruleOpts['interval'] = repeat.interval;
    }

    return RRule.optionsToString(ruleOpts);
  }
github chef / automate / components / automate-ui / src / app / pages / job-edit / job-edit.component.ts View on Github external
if (end.include) {
      ruleOpts['until'] = new Date(
        parseInt(end.datetime.year, 10),
        parseInt(end.datetime.month, 10),
        parseInt(end.datetime.date, 10),
        parseInt(end.datetime.hour, 10),
        parseInt(end.datetime.minute, 10)
      );
    }

    if (repeat.include) {
      ruleOpts['freq'] = repeat.freq;
      ruleOpts['interval'] = repeat.interval;
    }

    return RRule.optionsToString(ruleOpts);
  }