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 duration: DateTimePeriod

Calendar period between occurrences. Month and year periods depend on the date they are applied to.

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
fun calcNextOccurrence(timeZone: TimeZone = TimeZone.currentSystemDefault()): LocalDateTime

Calculates the next occurrence after the current time.

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

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

Link copied to clipboard