Function: overlapDays()
overlapDays(
aStart,aEnd,bStart,bEnd):number
Defined in: src/lib/dates/index.ts:230
Inclusive overlap (in days) between two date ranges [aStart,aEnd] and [bStart,bEnd]. Returns 0 when the ranges do not intersect. Used for holidays that may span week edges.
Parameters
aStart
Start of the first range (inclusive).
aEnd
End of the first range (inclusive).
bStart
Start of the second range (inclusive).
bEnd
End of the second range (inclusive).
Returns
number
Number of days both ranges share, counting endpoints; 0 if they are disjoint. Each range is assumed well-formed (*End >= *Start).