Skip to content

ElapsedPeriod

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