Weekly

data class Weekly(val dayOfWeek: DayOfWeek, val time: LocalTime, val interval: Int) : Frequency

Weekly frequency on a specific day and time.

Constructors

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

Properties

Link copied to clipboard
val dayOfWeek: DayOfWeek

The day of the week for the event.

Link copied to clipboard
open override val interval: Int

The interval in weeks 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