Skip to main content

Function: holidayWorkingDaysInRange()

holidayWorkingDaysInRange(start, end, config?): number

Defined in: src/lib/calendar/holidays.ts:201

Number of observed holidays that fall within [start, end] (inclusive) under config. Observation always lands a holiday on a weekday, so each counted holiday removes one working day from a period's expectation. Generates the surrounding years so a weekend holiday observed across a year boundary (e.g. Jan 1 on a Saturday → Dec 31) is still caught, and de-duplicates by observed date.

Parameters

start

CalendarDate

end

CalendarDate

config?

HolidaysConfig = DEFAULT_HOLIDAYS_CONFIG

Returns

number