Function parseCronRange

  • Parses CronRange into a string.

    Example

    parseCronRangeSeconds({ from: 13, to: 10 }); // "13-10"
    parseCronRangeSeconds({ from: 999, to: 999 }); // undefined

    Returns

    Curried function with parser in context.

    Type Parameters

    • Value

    Parameters

    Returns ((source: CronRange<Value>) => undefined | string)

      • (source: CronRange<Value>): undefined | string
      • Parameters

        Returns undefined | string