Skip to content

Function: getDaysLengthInMonth()

@taqwim/core


@taqwim/core / getDaysLengthInMonth

getDaysLengthInMonth(hyOrHijriDate): number

Defined in: packages/core/src/lib/getDaysLengthInMonth.ts:10

Returns the length of a month in the Hijri calendar. Overload to support HijriDateObject as a single parameter.

HijriDateObject

number

The length of the month in days. Returns -1 if the month is invalid.

getDaysLengthInMonth(hyOrHijriDate, hm?): number

Defined in: packages/core/src/lib/getDaysLengthInMonth.ts:11

Returns the length of a month in the Hijri calendar. Overload to support HijriDateObject as a single parameter.

number | HijriDateObject

number

number

The length of the month in days. Returns -1 if the month is invalid.