Skip to content

ElapsedPeriod

  • People's working time: duty logs, hours-of-work limits, rest and rolling windows, for any crew, shift or rota.

An exact length of time, every sliding window of it ending at the instant evaluated.

import type { ElapsedPeriod } from "@northguild/gmt";
MemberTypeDescription
elapsedstringThe window’s length, as an ISO 8601 duration of exact time: hours, minutes, seconds and days of 24 hours ("PT24H", "PT672H", "P7D"). Years, months and weeks are refused. Clock changes do not lengthen or shorten it.
type ElapsedPeriod = {
/**
* The window's length, as an ISO 8601 duration of exact time: hours, minutes, seconds and
* days of 24 hours (`"PT24H"`, `"PT672H"`, `"P7D"`). Years, months and weeks are refused.
* Clock changes do not lengthen or shorten it.
*/
elapsed: string;
};

types/duty.ts

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.