Skip to content

TimestampEvent

  • Legs, dwell, cut-offs and punctuality, shared by road, rail, sea and air.

One recorded timestamp of an event: what it claims, when it claims it, and when that claim was recorded.

import type { TimestampEvent } from "@northguild/gmt";
MemberTypeDescription
classifier"PLN" | "EST" | "REQ" | "ACT" (TimestampClass)What the timestamp claims to be: planned, estimated, requested or actual.
atstringThe moment the timestamp names, as an ISO 8601 instant (Z or an offset) or zoned string. Functions that return it echo it exactly as written.
recordedAtstringWhen the timestamp was recorded or received, as an ISO 8601 instant or zoned string. It orders revisions of the same class: the latest recorded is the current one.
type TimestampEvent = {
/** What the timestamp claims to be: planned, estimated, requested or actual. */
classifier: TimestampClass;
/**
* The moment the timestamp names, as an ISO 8601 instant (`Z` or an offset) or zoned string.
* Functions that return it echo it exactly as written.
*/
at: string;
/**
* When the timestamp was recorded or received, as an ISO 8601 instant or zoned string. It
* orders revisions of the same class: the latest recorded is the current one.
*/
recordedAt: string;
};

types/transport-timestamps.ts