DateDayProgression

abstract class DateDayProgression : Iterable<Date>

Types

Companion
Link copied to clipboard
common
object Companion

Functions

isEmpty
Link copied to clipboard
common
abstract fun isEmpty(): Boolean

Checks if this progression is empty.

iterator
Link copied to clipboard
common
open operator override fun iterator(): Iterator<Date>

Properties

first
Link copied to clipboard
common
abstract val first: Date
last
Link copied to clipboard
common
abstract val last: Date
step
Link copied to clipboard
common
abstract val step: Days

Inheritors

DateRange
Link copied to clipboard

Extensions

reversed
Link copied to clipboard
common
fun DateDayProgression.reversed(): DateDayProgression

Reverses this progression such that it counts down instead of up, or vice versa.

step
Link copied to clipboard
common
infix fun DateDayProgression.step(step: Days): DateDayProgression

Creates a progression that steps over the dates in this progression in increments of days.

infix fun DateDayProgression.step(step: Weeks): DateDayProgression

Creates a progression that steps over the dates in this progression in increments of weeks.

infix fun DateDayProgression.step(step: Months): DateMonthProgression

Creates a progression that steps over the dates in this progression in increments of months.

infix fun DateDayProgression.step(step: Years): DateMonthProgression

Creates a progression that steps over the dates in this progression in increments of years.

infix fun DateDayProgression.step(step: Decades): DateMonthProgression

Creates a progression that steps over the dates in this progression in increments of decades.

infix fun DateDayProgression.step(step: Centuries): DateMonthProgression

Creates a progression that steps over the dates in this progression in increments of centuries.