Skip to main content

Function: previousPeriod()

previousPeriod(p): BiMonthlyPeriod

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

The bi-monthly period immediately before p: half 2 → half 1 of the same month; half 1 → half 2 of the prior month, rolling the year back from January to December.

Parameters

p

BiMonthlyPeriod

The reference period.

Returns

BiMonthlyPeriod

The period that ends the day before p starts.