Library API
    Preparing search index...

    Function getNextScheduleEpoch

    • Polymorphically computes the next occurrence epoch timestamp (in milliseconds) for a schedule expression (Cron pattern or RRULE string).

      Parameters

      • pattern: string

        The schedule pattern (5-field Cron or RFC 5545 RRULE)

      • anchorMs: number

        The starting anchor timestamp in epoch milliseconds

      • timeZone: string = 'UTC'

        The IANA time zone identifier for Cron patterns (defaults to UTC)

      Returns number | null

      Next epoch timestamp in milliseconds, or null if no future occurrences exist

      RRULE strings are evaluated in UTC because getNextRRuleEpoch does not accept a timeZone, while timeZone is applied only to Cron patterns.