Function: recentCompletedWeeks()
recentCompletedWeeks(
asOf,count,weekStartsOn?):WeekRange[]
Defined in: src/lib/calendar/index.ts:96
The most recent fully-completed weeks as of asOf, newest first. A week is only offered once its
last day has passed (the in-progress week containing asOf is excluded). weekStartsOn chooses the
boundary: 'sunday' (Sun→Sat, the default — facility invoicing weeks) or 'monday' (ISO Mon→Sun,
the contractor-hours week used by performance scoring, ADR-0044). start/end are the week's first
and last day under that boundary.
Parameters
asOf
count
number
weekStartsOn?
"monday" | "sunday"