Function: isStandardPayCycle()
isStandardPayCycle(
startISO,stopISO):boolean
Defined in: src/lib/dates/index.ts:354
Whether [startISO, stopISO] exactly matches a standard bi-monthly pay cycle (the 1st–15th or the
16th–end of a single month). Anything else is allowed but flagged to the user as off-cycle.
Parameters
startISO
string
Proposed cycle start as YYYY-MM-DD.
stopISO
string
Proposed cycle end as YYYY-MM-DD.
Returns
boolean
true only if startISO is a valid cycle boundary (1st or 16th) and stopISO equals the implied end for that start; false otherwise (including unparseable input).