Skip to content

Interval

  • The core functions, which every industry uses.
  • People's working time: duty logs, hours-of-work limits, rest and rolling windows, for any crew, shift or rota.
  • Container free time, demurrage and detention clocks, billing deadlines, bill of lading dates, multimodal journeys, EPCIS events and EDI timestamps.

A span of time between two ISO 8601 instant strings, half-open: [start, end).

import type { Interval } from "@northguild/gmt";
MemberTypeDescription
startstringThe first instant inside the interval, as an ISO 8601 instant string with an offset.
endstringThe first instant after the interval, as an ISO 8601 instant string with an offset; it is not itself inside. It may equal start, which makes the interval empty, but not precede it.
type Interval = {
/** The first instant inside the interval, as an ISO 8601 instant string with an offset. */
start: string;
/**
* The first instant after the interval, as an ISO 8601 instant string with an offset; it is
* not itself inside. It may equal `start`, which makes the interval empty, but not precede it.
*/
end: string;
};

types/interval.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.