Skip to content

EdiDateTimePeriod

  • Container free time, demurrage, billing deadlines, bill of lading dates and EDI timestamps.

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.

import type { EdiDateTimePeriod } from "@northguild/gmt";
MemberTypeDescription
startstringThe local date-time the period starts at, YYYY-MM-DDTHH:MM:SS. Seconds are always written.
endstringThe 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.
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;
}

types/edi.ts