Library API
    Preparing search index...

    Function expandRRuleEpochs

    • Expands occurrences of an RFC 5545 RRULE string into epoch millisecond numbers. Pure function operating strictly on primitive timestamps and UTC Date calculations. At most 1,000 periods are examined; without a rule or option count, up to 100 results are returned.

      Parameters

      • rruleStr: string

        The RFC 5545 recurrence rule string to expand

      • anchorEpochMs: number

        Anchor timestamp in epoch milliseconds to evaluate occurrences from

      • Optionaloptions: { afterMs?: number; beforeMs?: number; count?: number }

        Optional count and epoch-millisecond bounds; afterMs is exclusive and beforeMs is inclusive

      Returns number[]

      Array of occurrence timestamps in epoch milliseconds

      Error if the frequency is unsupported (DAILY, WEEKLY, MONTHLY, and YEARLY are supported).