Function parseCronDayOfMonth

  • Parses CronDayOfMonth into a string.

    Example

    parseCronDayOfMonth(10); // "10"
    parseCronDayOfMonth("*"); // "*"
    parseCronDayOfMonth("?"); // "?"
    parseCronDayOfMonth({ every: 10, start: 2 }); // "2/10"
    parseCronDayOfMonth({ every: 10, start: "L" }); // "L/10"
    parseCronDayOfMonth([1, 2, 3, 4]); // "1,2,3,4"
    parseCronDayOfMonth({ from: 5, to: 10 }); // "5-10"
    parseCronDayOfMonth([1, 2, 3, 4, { from: 5, to: 10 }]); // "1,2,3,4,5-10"
    parseCronDayOfMonth("L"); // "L"
    parseCronDayOfMonth({ nearest: 1 }); // "1W"
    parseCronDayOfMonth({ every: 99, start: "*" }); // undefined

    Returns

    A string or undefined if invalid.

    Parameters

    Returns Maybe<string>