Daily

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

Daily frequency at a specific time.

Constructors

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

Properties

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 days 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