Function parseCronYearValue

  • Parses CronYearValue into a string.

    Example

    parseCronYearValue(1989); // "1989"
    parseCronYearValue(2022); // "2022"
    parseCronYearValue(1969); // undefined
    parseCronYearValue(3000); // undefined

    Returns

    A string or undefined if invalid.

    Parameters

    Returns Maybe<string>