Function parseStringMonthValue

  • Parses a string into a CronMonthValue.

    Example

    parseStringMonthValue("10"); // 10
    parseStringMonthValue("OCT"); // "OCT"
    parseStringMonthValue("oct"); // "OCT"
    parseStringMonthValue("24"); // undefined
    parseStringMonthValue("IDK"); // undefined

    Returns

    A CronMonthValue or undefined if invalid.

    Parameters

    • input: string

    Returns Maybe<CronMonthValue>