# EdiDateTimePeriod

Industry: Intermodal

A period between two local date-times, as a UN/EDIFACT period (`719`) or an X12 range (`RDT`, `DTS`) states it: the result of `parseEdifactDateTimePeriod` and `parseX12DateTimeRange`.

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

## Members

| Member | Type | Description |
| --- | --- | --- |
| `start` | `string` | The local date-time the period starts at, `YYYY-MM-DDTHH:MM:SS`. Seconds are always written. |
| `end` | `string` | The local date-time the period ends at, `YYYY-MM-DDTHH:MM:SS`. Seconds are always written. It is never before `start`, and may equal it. |

## Definition

```ts
interface EdiDateTimePeriod {
  /** The local date-time the period starts at, `YYYY-MM-DDTHH:MM:SS`. Seconds are always written. */
  start: string;
  /**
   * The local date-time the period ends at, `YYYY-MM-DDTHH:MM:SS`. Seconds are always written. It
   * is never before `start`, and may equal it.
   */
  end: string;
}
```

## Used by

- [`parseEdifactDateTimePeriod`](/gmt/reference/intermodal/parse/parseEdifactDateTimePeriod/)
- [`parseX12DateTimeRange`](/gmt/reference/intermodal/parse/parseX12DateTimeRange/)

## Source

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