Function: getMonthAdjacentDays()
@taqwim/core / getMonthAdjacentDays
getMonthAdjacentDays(
hijriDate,weekStartsOn):object
Defined in: packages/core/src/lib/getMonthAdjacentDays.ts:14
Get the days of the previous and next months needed to pad the given month into whole weeks.
Parameters
Section titled “Parameters”hijriDate
Section titled “hijriDate”HijriDateObject
Any date in the month to pad.
weekStartsOn
Section titled “weekStartsOn”number = 0
Day the week starts on, 0 (Sunday) .. 6 (Saturday).
Defaults to Sunday.
Returns
Section titled “Returns”object
The leading days from the previous month and the trailing days from
the next. dayInWeek is the true day of the week (0 = Sunday).
nextMonthDays
Section titled “nextMonthDays”nextMonthDays:
MonthDay[]
prevMonthDays
Section titled “prevMonthDays”prevMonthDays:
MonthDay[]