workforce/calculate
dutyDayFor: Return the operator-designated day an instant falls in: from the most recentdayStartTimeintimeZoneat or before the instant, up to (not including) the next one.dutyTotals: Return the time a duty log spends in any ofstatusesinside a window, as an exact ISO 8601 duration.dutyViolations: Return every violation of a set of hours-of-work rules inside a range, each with the window that failed it: the record over a month, not the check before dispatch.evaluateDutyLog: Evaluate every hours-of-work rule over a duty log at one instant, and report each one whether or not it binds.longestRun: Return the longest unbroken stretch a duty log spends in any ofstatusesinside a window.qualifyingRestPairs: Return every paired rest in a duty log: two separate rests that together count as one, because they meet all three floors ofspec.pair.qualifyingRests: Return every rest of at leastminimumin a duty log: the runs of touching entries in any ofspec.statusesthat last that long.
DutyDay: The operator-designated day: a 24-hour period that starts atdayStartTimeintimeZone, wherever the person is.DutyReport: Every rule of a regime evaluated at one instant.DutyViolation: One failed window in a range, for the record.PeriodBasis: Which arithmetic a window used: exact elapsed time, operator days, or local calendar periods.RestPair: Two rest periods that satisfy aPairSpec, in the order they were taken.RuleOutcome: One rule evaluated at one instant, reported whether or not it binds.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.