YearMonth

data class YearMonth(val year: Int, val month: Int) : Comparable<YearMonth>

Year and month value selected by YearMonthPicker.

This type avoids using a first-day LocalDate as the primary value when an app only needs a year/month pair.

Parameters

year

Year value in 1000..9999.

month

Month value in 1..12.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val month: Int
Link copied to clipboard
val year: Int

Functions

Link copied to clipboard
fun atDay(dayOfMonth: Int = 1): LocalDate

Converts this value to a LocalDate using dayOfMonth.

Link copied to clipboard
open operator override fun compareTo(other: YearMonth): Int