SimpleDate

data class SimpleDate(val year: Int, val month: Int, val dayOfMonth: Int = 1) : Comparable<SimpleDate> (source)

Represents a simple date with year, month, and day of the month.

Constructors

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

Properties

Link copied to clipboard

The day of the month (1-32). Defaults to 1.

Link copied to clipboard
val month: Int

The Nepali month (1-12).

Link copied to clipboard
val year: Int

The Nepali year.

Functions

Link copied to clipboard
open operator override fun compareTo(other: SimpleDate): Int
Link copied to clipboard
fun indexIn(years: IntRange): Int

Returns the position of a SimpleDate within given years range.