LunarDate

data class LunarDate(val year: Int, val month: Int, val day: Int, val isLeapMonth: Boolean = false)

A date in the Chinese lunisolar calendar. month is 1..12; a leap month repeats its number.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, day: Int, isLeapMonth: Boolean = false)

Properties

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

Functions

Link copied to clipboard
fun LunarDate.toLocalDate(): LocalDate

Converts a lunar date back to Gregorian. Valid for lunar years 1900..2099.