mirror of
https://github.com/acamarata/luxon-hijri.git
synced 2026-07-01 11:14:29 +00:00
877 B
877 B
luxon-hijri / toGregorian
Function: toGregorian()
toGregorian(
hy,hm,hd,options?):Date
Defined in: src/toGregorian.ts:25
Convert a Hijri date to a Gregorian Date object.
Unlike the hijri-core function (which returns null for invalid input), this wrapper throws an Error so callers always receive a valid Date.
Parameters
hy
number
Hijri year
hm
number
Hijri month (1-12)
hd
number
Hijri day (1-30)
options?
conversion options (calendar engine selection)
Returns
Date
a UTC Date corresponding to the given Hijri date
Throws
if the Hijri date is invalid or out of range