Function: getDaysLengthInMonth()
@taqwim/core / getDaysLengthInMonth
Call Signature
Section titled “Call Signature”getDaysLengthInMonth(
hyOrHijriDate,options?):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.
Parameters
Section titled “Parameters”hyOrHijriDate
Section titled “hyOrHijriDate”HijriDateObject
A Hijri year, or a HijriDateObject specifying the year and month.
options?
Section titled “options?”Returns
Section titled “Returns”number
The length of the month in days. Returns -1 if the month is invalid.
Call Signature
Section titled “Call Signature”getDaysLengthInMonth(
hyOrHijriDate,hm,options?):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.
Parameters
Section titled “Parameters”hyOrHijriDate
Section titled “hyOrHijriDate”number
A Hijri year, or a HijriDateObject specifying the year and month.
number
options?
Section titled “options?”Returns
Section titled “Returns”number
The length of the month in days. Returns -1 if the month is invalid.