Function parseCronMinutes

  • Parses CronMinutes into a string.

    Example

    parseCronMinutes(10); // "10"
    parseCronMinutes("*"); // "*"
    parseCronMinutes({ every: 10, start: 2 }); // "2/10"
    parseCronMinutes([1, 2, 3, 4]); // "1,2,3,4"
    parseCronMinutes({ from: 5, to: 10 }); // "5-10"
    parseCronMinutes([1, 2, 3, 4, { from: 5, to: 10 }]); // "1,2,3,4,5-10"

    Returns

    A string or undefined if invalid.

    Type Parameters

    • Source extends number

    Parameters

    Returns Maybe<string>