Function parseStringNearestDayOfMonth

  • Parses a string into a CronNearestDayOfMonth.

    Example

    parseStringNearestDayOfMonth("2W"); // { nearest: 2 }
    parseStringNearestDayOfMonth("INVALID"); // undefined

    Returns

    A CronNearestDayOfMonth or undefined if invalid.

    Parameters

    • source: string

      string to be parsed.

    Returns undefined | CronNearestDayOfMonth