Function: recentClosablePeriods()
recentClosablePeriods(
asOf,count):BiMonthlyPeriod[]
Defined in: src/lib/dates/index.ts:383
The most recent bi-monthly periods that have fully ended as of asOf, newest first. A period
is only offered for close once its last day has passed (15-day arrears assumption), so the
in-progress period containing asOf is excluded. Note the boundary is strict: a period whose
end equals asOf is treated as not-yet-closed and skipped.
Parameters
asOf
The reference "today" date.
count
number
How many closed periods to return.
Returns
Up to count periods in descending (newest-first) order; an empty array if count <= 0.