Skip to main content

Function: inclusiveDays()

inclusiveDays(start, end): number

Defined in: src/lib/dates/index.ts:195

Inclusive number of calendar days spanning start to end, counting both endpoints.

Parameters

start

CalendarDate

The first day of the span.

end

CalendarDate

The last day of the span (caller's responsibility to ensure end >= start; if end precedes start the result is zero or negative).

Returns

number

Day count where the same day → 1, consecutive days → 2, etc.