calculateInstanceOccurrences
Function: calculateInstanceOccurrences()
calculateInstanceOccurrences(
config,logger):CalculatedOccurrence[]
Defined in: src/services/eventGeneration/occurrenceCalculator.ts:20
Calculates the occurrence times for a recurring event based on its recurrence rule, handling exceptions and various frequencies (daily, weekly, monthly, yearly).
Parameters
config
The configuration object containing the recurrence rule, base event, and time window.
logger
FastifyBaseLogger
The logger for logging debug and informational messages.
Returns
- An array of calculated occurrences, each with its start and end times and metadata.