Parses CronMonth into a string.
CronMonth
parseCronMonth(10); // "10"parseCronMonth("*"); // "*"parseCronMonth({ every: 6, start: 2 }); // "2/6"parseCronMonth([1, 2, 3, 4]); // "1,2,3,4"parseCronMonth({ from: 1, to: 5 }); // "1-5"parseCronMonth({ from: "JAN", to: "OCT" }); // "JAN-OCT"parseCronMonth([1, 2, 3, { from: 5, to: 7 }]); // "1,2,3,5-7"
A string or undefined if invalid.
undefined
CronMonth to be parsed.
Parses
CronMonth
into a string.Example
Returns
A string or
undefined
if invalid.