Monthly

data class Monthly(val dayOfMonth: Int, val time: LocalTime, val interval: Int) : Frequency

Monthly frequency on a specific day and time.

Constructors

Link copied to clipboard
constructor(dayOfMonth: Int, time: LocalTime, interval: Int)

Properties

Link copied to clipboard

The day of the month for the event.

Link copied to clipboard
open override val interval: Int

The interval in months between occurrences.

Link copied to clipboard
open override val time: LocalTime

The time of day for the event.

Link copied to clipboard
open override val type: Frequency.Type

Functions

Link copied to clipboard
open override fun calcNextOccurrence(from: LocalDate, timeZone: TimeZone = TimeZone.currentSystemDefault(), offset: Int = 0): LocalDateTime

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

Link copied to clipboard
fun calcNextOccurrences(from: LocalDate, count: Int, offset: Int = 0, timeZone: TimeZone = TimeZone.currentSystemDefault()): List<LocalDateTime>

Calculates the next count occurrences of the event based on the frequency settings.

Link copied to clipboard