Skip to content

Function: toGregorian()

@taqwim/core


@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).

If the arguments are incomplete or the Hijri date is not a real date.

If the Hijri year falls outside the Umm al-Qura table’s coverage.

toGregorian(date): Date

Defined in: packages/core/src/lib/toGregorian.ts:13

HijriDateObject

Date

toGregorian(hy, hm, hd): Date

Defined in: packages/core/src/lib/toGregorian.ts:14

number

number

number

Date