Skip to main content

Function: periodForDate()

periodForDate(d): BiMonthlyPeriod

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

The bi-monthly period that contains a given date: day ≤ 15 → half 1, otherwise half 2.

Parameters

d

CalendarDate

Any calendar date.

Returns

BiMonthlyPeriod

The BiMonthlyPeriod that includes d.