Documentation
¶
Overview ¶
Package excludeofftime implements the "exclude-off-time" transform primitive: it subtracts recurring daily off-hours windows (lunch breaks, end-of-day cutoffs, etc.) from every session's duration.
Off-hours windows come from State.Form["offHours"] when the run's form supplied one (round-tripped through JSON, since Form values are untyped any), falling back to the primitive's own params ({"offHours": [{"startMinute": .., "endMinute": ..}]}) otherwise.
All day-boundary math runs in time.UTC for determinism — the primitive has no notion of a user's local timezone, so the overlap computed for a given session is reproducible regardless of where the pipeline runs.
Index ¶
Constants ¶
const Name = "exclude-off-time"
Name is the primitive's registry key.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.