Millwork
    Preparing search index...

    Interface CronValue

    A cron expression. The value is a frozen plain object. Times use the local time zone.

    interface CronValue {
        dialect: CronDialect;
        expression: string;
        next(from?: Date): Date | null;
        nextRuns(count: number, from?: Date): Date[];
    }
    Index
    dialect: CronDialect
    expression: string

    The expression, with one space between fields.

    • The first run after from (the default is now), or null when there is none.

      Parameters

      • Optionalfrom: Date

      Returns Date | null

    • The next count runs after from (the default is now).

      Parameters

      • count: number
      • Optionalfrom: Date

      Returns Date[]