Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "nextCronOccurrence"

Index

Functions

Functions

nextCronOccurrence

  • nextCronOccurrence(schedule: string, from?: Date): Date | undefined
  • Fetch the next time in the 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 date.

    Returns Date | undefined

    The next date in the sequence or undefined if there are no more dates in the sequence.

Generated using TypeDoc