Function: toGregorian()
@taqwim/core / toGregorian
Converts a Hijri date to a Gregorian date.
The Hijri date object or the Hijri year.
The Hijri month (optional, required if dateOrHy is a number).
The Hijri day (optional, required if dateOrHy is a number).
Throws
Section titled “Throws”If the arguments are incomplete or the Hijri date is not a real date.
Throws
Section titled “Throws”If the Hijri year falls outside the Umm al-Qura table’s coverage.
Call Signature
Section titled “Call Signature”toGregorian(
date):Date
Defined in: packages/core/src/lib/toGregorian.ts:13
Parameters
Section titled “Parameters”HijriDateObject
Returns
Section titled “Returns”Date
Call Signature
Section titled “Call Signature”toGregorian(
hy,hm,hd):Date
Defined in: packages/core/src/lib/toGregorian.ts:14
Parameters
Section titled “Parameters”number
number
number
Returns
Section titled “Returns”Date