PersianDate

data class PersianDate(val year: Int, val month: Int, val day: Int)

A date in the Persian (Solar Hijri, Jalali) calendar, the civil calendar of Iran and Afghanistan. month is 1 (Farvardin) .. 12 (Esfand); months 1-6 have 31 days, 7-11 have 30 and Esfand has 29, or 30 in a leap year. Supported years: -61..3177 AP.

Constructors

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

Properties

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

Functions

Link copied to clipboard

Whether Esfand of this date's year has 30 days.

Link copied to clipboard

Number of days in this date's month.

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

Converts this Persian date to a Gregorian LocalDate.