Function: toHijri()
@taqwim/core / toHijri
Converts a Gregorian date to Hijri (Islamic) date.
The Gregorian date or year to convert.
The month of the Gregorian date (optional, required if dateOrYear is a number).
The day of the Gregorian date (optional, required if dateOrYear is a number).
Throws
Section titled “Throws”If the input is not a usable Gregorian date.
Throws
Section titled “Throws”If the date falls outside the Umm al-Qura table’s coverage.
Call Signature
Section titled “Call Signature”toHijri(
date):HijriDateObject
Defined in: packages/core/src/lib/toHijri.ts:12
Parameters
Section titled “Parameters”Date | DateObject
Returns
Section titled “Returns”HijriDateObject
Call Signature
Section titled “Call Signature”toHijri(
year,month,day):HijriDateObject
Defined in: packages/core/src/lib/toHijri.ts:13
Parameters
Section titled “Parameters”number
number
number
Returns
Section titled “Returns”HijriDateObject
Call Signature
Section titled “Call Signature”toHijri(
date):HijriDateObject
Defined in: packages/core/src/lib/toHijri.ts:14
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”HijriDateObject