View as Markdown

API reference

@salmonui/scheduler

147 exported symbols: 1 component, 13 functions, 104 interfaces, 26 types and 3 constants. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/scheduler';

Components

Functions

  • RecurrenceEditor
  • formatRecurrenceRulePrints a rule in canonical part order (FREQ, INTERVAL, BYDAY, BYMONTHDAY, BYMONTH, BYSETPOS, WKST, COUNT, UNTIL); parseRecurrenceRule reads it back.
  • fromZonedDateTimeThe instant (Date) of wall time wallTime in zone; DST gaps move forward and overlaps take the earlier instant (Temporal 'compatible'). An invalid input gives a…
  • getRangeDaysInclusive number of days of a range; 0 for null.
  • getRecurrenceDatesOccurrence wall times of a rule, as PlainDateTimes in timeZone. Exceptions are skipped; never throws.
  • getRecurrenceSummaryA localized one-line summary of a rule: "Every 2 weeks on Monday and Wednesday, until Dec 31, 2026". null or an empty rule reads as never; an invalid rule give…
  • getTimeZoneOffsetOffset of zone from UTC at instant in minutes (60 for Europe/Berlin in winter, -300 for New York); null for an unknown zone or invalid instant.
  • parseRecurrenceRuleParses an RRULE string (FREQ=WEEKLY;BYDAY=MO,WE, optionally prefixed RRULE:). Unsupported or invalid parts give an error result; it never throws.
  • toDateThe Date (instant) of a plain date or date-time: its wall time in timeZone (DST resolved like Temporal 'compatible'), else in the host zone. An invalid value o…
  • toPlainDateNormalizes a DateInput (an invalid input is null; never throws).
  • toPlainDateTimeNormalizes a DateTimeInput; a date-only input is midnight.
  • toPlainTimeNormalizes a TimeInput; a date-time input keeps its time part.
  • toZonedDateTimeWall time of instant in zone as a PlainDateTime; null for an unknown zone or invalid instant.

Interfaces

Types

Constants