Skip to content

EdiDatePeriod

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

A period between two calendar dates, as a UN/EDIFACT period (718) or an X12 range (RD8, RD) states it: the result of parseEdifactDatePeriod and parseX12DateRange.

import type { EdiDatePeriod } from "@northguild/gmt";
MemberTypeDescription
startstringThe date the period starts on, YYYY-MM-DD.
endstringThe date the period ends on, YYYY-MM-DD. It is never before start, and may equal it.
interface EdiDatePeriod {
/** The date the period starts on, `YYYY-MM-DD`. */
start: string;
/** The date the period ends on, `YYYY-MM-DD`. It is never before `start`, and may equal it. */
end: string;
}

types/edi.ts