calcNextOccurrence

open override fun calcNextOccurrence(after: LocalDateTime, timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime

Calculates the first occurrence strictly after after, based on the frequency settings.

Return

The next occurrence as a LocalDateTime.

Parameters

after

The local date and time after which to calculate the next occurrence.

timeZone

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