Skip to content

parseMonthlyReset

parseMonthlyReset(label, now): number | null

Defined in: src/usage-limits.ts:88

Parse a credits-cycle reset label (month-name + day, e.g. “Jun1” / “Jun 1”) to a ms epoch at local midnight. Unlike parseResetLabel, a date already past rolls forward ONE MONTH (the credits budget is monthly), not one year — carrying the year on a Dec→Jan wrap.

string

number

number | null