# ElapsedPeriod

Industry: Workforce

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

```ts
import type { ElapsedPeriod } from "@northguild/gmt";
```

## Members

| Member | Type | Description |
| --- | --- | --- |
| `elapsed` | `string` | 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. |

## Definition

```ts
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;
};
```

## Used by

- [`dutyViolations`](/gmt/reference/workforce/calculate/dutyViolations/)
- [`evaluateDutyLog`](/gmt/reference/workforce/calculate/evaluateDutyLog/)

## Source

[types/duty.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/duty.ts)
