Function parseCronSteps

  • Parses CronSteps into a string.

    Example

    const parseCronStepsSeconds = parseCronSteps([0, 59])(parseCronSecondsValue);

    parseCronStepsSeconds({ every: 10, start: 13 }); // "13/10"
    parseCronStepsSeconds({ every: 99, start: 13 }); // undefined
    parseCronStepsSeconds({
    every: 10,
    start: { from: 13, to: 10 },
    }); // "13-10/10"
    parseCronStepsSeconds({ every: 10, start: "?" }); // "?/10"

    Returns

    Curried function with limit on context.

    Parameters

    • limit: LimitTuple

      LimitTuple to be used when parsing CronSteps.

    Returns (<Value>(parser: CronValueParser<Value>) => ((source: CronSteps<Value>) => undefined | string))