MCPcopy Create free account
hub / github.com/node-schedule/node-schedule / RecurrenceRule

Function RecurrenceRule

lib/Invocation.js:59–69  ·  view source on GitHub ↗
(year, month, date, dayOfWeek, hour, minute, second)

Source from the content-addressed store, hash-verified

57 NOTE: Cron months are 1-based, but RecurrenceRule months are 0-based.
58*/
59function RecurrenceRule(year, month, date, dayOfWeek, hour, minute, second) {
60 this.recurs = true;
61
62 this.year = (year == null) ? null : year;
63 this.month = (month == null) ? null : month;
64 this.date = (date == null) ? null : date;
65 this.dayOfWeek = (dayOfWeek == null) ? null : dayOfWeek;
66 this.hour = (hour == null) ? null : hour;
67 this.minute = (minute == null) ? null : minute;
68 this.second = (second == null) ? 0 : second;
69}
70
71RecurrenceRule.prototype.isValid = function() {
72 function isValidType(num) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…