View as Markdown

API reference: @salmonui/scheduler

RecurrenceDatesOptionsinterface

import type { RecurrenceDatesOptions } from '@salmonui/scheduler';
interface RecurrenceDatesOptions {
    readonly start: DateTimeInput;
    readonly timeZone?: string;
    readonly exceptions?: readonly DateTimeInput[];
    readonly range?: {
        readonly start: DateTimeInput;
        readonly end: DateTimeInput;
    };
    readonly maxCount?: number;
}
RecurrenceDatesOptions members (5)
NameSignatureDescription
startreadonly start: DateTimeInput;

First occurrence (DTSTART); an instant is read as wall time in timeZone.

timeZoneoptionalreadonly timeZone?: string;
exceptionsoptionalreadonly exceptions?: readonly DateTimeInput[];

Occurrences to skip (EXDATE), as wall times or instants.

rangeoptionalreadonly range?: { readonly start: DateTimeInput; readonly end: DateTimeInput; };

Optional window; inputs are wall times (or instants) in timeZone. Inclusive start, exclusive end.

maxCountoptionalreadonly maxCount?: number;

At most this many dates (default 1,000; a rule without an end needs range or maxCount).