calcNextOccurrence

abstract fun calcNextOccurrence(from: LocalDate, timeZone: TimeZone = TimeZone.currentSystemDefault(), offset: Int = 0): LocalDateTime

Calculates the next occurrence of the event based on the frequency settings.

Return

The next occurrence as a LocalDateTime.

Parameters

from

The starting point to calculate the next occurrence from.

timeZone

The time zone to consider for the calculation (defaults to the system's current time zone).

offset

An optional offset to adjust the calculation (default is 0).