Skip to main content

Module window

Module window 

Source

Structs§

ModelUsage
Report
Totals

Constants§

FIVE_HOUR_SECS
LOOKBACK_SECS
How far back to read when inferring the anniversary.
WEEKLY_SECS

Functions§

build
Build the report: window totals plus a per-model breakdown for the period.
calendar_month_start
Start of the calendar month, 00:00 UTC — the predictable default, since nothing local records a subscription anniversary (the console holds it).
days_from_civil
month_start
Start of the billing month: the most recent occurrence of the inferred anniversary day, else the first of the calendar month. Returns (start, inferred).
now_ms
Wall-clock now in epoch ms.