Parses CronPart into a string.
CronPart
const parseCronPartSeconds = parseCronPart([0, 59])(parseCronSecondsValue);parseCronPartSeconds("*"); // "*"parseCronPartSeconds([13, 10]); // "13,10"parseCronPartSeconds([{ from: 13, to: 10 }, 10]); // "13-10,10"parseCronPartSeconds([{ every: 10, start: 13 }, 10]); // "13/10,10"parseCronPartSeconds([{ every: 99, start: 13 }, 10]); // undefinedparseCronPartSeconds([{ every: 10, start: { from: 13, to: 10 } }, 10]); // "13-10/10,10"parseCronPartSeconds([{ every: 10, start: "?" }, 10]); // "?/10,10"parseCronPartSeconds({ every: 10, start: 13 }); // "13/10"parseCronPartSeconds({ every: 10, start: { from: 13, to: 10 },}); // "13-10/10"parseCronPartSeconds({ every: 10, start: "?" }); // "?/10"parseCronPartSeconds({ from: 13, to: 10,}); // "13-10"
Curried function with limit on context.
limit
LimitTuple to be used when parsing CronSteps.
LimitTuple
CronSteps
Parses
CronPart
into a string.Example
Returns
Curried function with
limit
on context.