# DutyEntry

Industry: Workforce

One status held over a half-open span of time, `[start, end)`: one line of a duty log.

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

## Members

| Member | Type | Description |
| --- | --- | --- |
| `status` | `S` | The caller's status for the span, such as `"driving"`, `"off"` or `"homeCall"`. GMT reads no meaning into it: each rule names the statuses it counts, and a status no rule names is ignored. |
| `start` | `string` | When the status begins, as an ISO 8601 instant string with an offset (`Z` or `±HH:MM`). |
| `end` | `string` | When the status ends, as an ISO 8601 instant string with an offset. It must be after `start`, and the entry does not include it. |

## Definition

```ts
type DutyEntry<S extends string = string> = {
  /**
   * The caller's status for the span, such as `"driving"`, `"off"` or `"homeCall"`. GMT reads no
   * meaning into it: each rule names the statuses it counts, and a status no rule names is ignored.
   */
  status: S;
  /** When the status begins, as an ISO 8601 instant string with an offset (`Z` or `±HH:MM`). */
  start: string;
  /**
   * When the status ends, as an ISO 8601 instant string with an offset. It must be after `start`,
   * and the entry does not include it.
   */
  end: string;
};
```

## Used by

- [`dutyTotals`](/gmt/reference/workforce/calculate/dutyTotals/)
- [`dutyViolations`](/gmt/reference/workforce/calculate/dutyViolations/)
- [`evaluateDutyLog`](/gmt/reference/workforce/calculate/evaluateDutyLog/)
- [`longestRun`](/gmt/reference/workforce/calculate/longestRun/)
- [`qualifyingRestPairs`](/gmt/reference/workforce/calculate/qualifyingRestPairs/)
- [`qualifyingRests`](/gmt/reference/workforce/calculate/qualifyingRests/)

## Source

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