Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "nextCronOccurrences"

Index

Functions

nextCronOccurrences

  • nextCronOccurrences(schedule: string, from?: Date): Generator<Date>
  • Generate a sequence of the next times for the given cron schedule

    throws

    If the schedule string is not valid cron syntax.

    Parameters

    • schedule: string

      Cron schedule string e.g. 0,30 9-17 * * MON-FRI

    • Optional from: Date

      Option start point after which to find the next matching dates.

    Returns Generator<Date>

    A generator of subsequent dates.

Generated using TypeDoc