HijriDate

data class HijriDate(val year: Int, val month: Int, val day: Int, val variant: HijriVariant = HijriVariant.UmmAlQura)

A date in the Hijri (Islamic lunar) calendar. month is 1 (Muharram) .. 12 (Dhu al-Hijjah). Construction checks the month and that day is 1..30; toLocalDate also checks the day against the month length of variant.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, day: Int, variant: HijriVariant = HijriVariant.UmmAlQura)

Properties

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

Functions

Link copied to clipboard

Number of days (29 or 30) in this date's month.

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

Converts this Hijri date to a Gregorian LocalDate.