Function parseStringYearValue

  • Parses a string into a CronYearValue.

    Example

    parseStringYearValue("1989"); // 1989
    parseStringYearValue("3000"); // undefined

    Returns

    A CronYearValue or undefined if invalid.

    Parameters

    • input: string

    Returns Maybe<CronYearValue>