Types
Shared types
Section titled “Shared types”ArrowTimeUnit: The unit of an Apache ArrowTimestampcolumn: Temporal’s unit names, singular or plural, matching Arrow’sTimeUnit(SECOND,MILLISECOND,MICROSECOND,NANOSECOND).BusinessCalendar: A jurisdiction’s working week: which weekdays are weekend, which dates are holidays, and which locality the answer is for.CalendarDaysPeriod: A count of local calendar days in the reference zone, the last the day the instant falls in.CalendarMonthsPeriod: A count of local calendar months in the reference zone, the last the current one.CalendarOptions: Core fields shared by all calendar-formatting interfaces.CalendarSystem: A calendar GMT’s calendar functions support, named by its canonical calendar id: the CLDRcommon/bcp47/calendar.xmltype that Temporal’sCanonicalizeCalendarreturns, and that RFC 9557’s[u-ca=<id>]annotation carries.CalendarYearsPeriod: A count of local calendar years in the reference zone, the last the current one.CronExpression: A parsed five-field crontab schedule (minute, hour, day of month, month, day of week).CronField: One field of a parsed five-field crontab schedule.CumulativeCapRule: A cap on time instatusessince the last reset: “11 hours driving since 10 hours off”.CutoffOptions: Options forcutoffAt.DateCycleField: A date fieldcycleDate,cycleDateTimeandcycleZonedcan step and wrap:"year","month"or"day".DateDurationUnit: A date field of an ISO 8601 duration, in the plural:"years","months","weeks"or"days".DateTimeCycleField: A date or time fieldcycleDateTimeandcycleZonedcan step and wrap: anyDateCycleFieldorTimeCycleField.DateTimeDurationUnit: Any field of an ISO 8601 duration, in the plural, from"years"down to"nanoseconds".DateTimeFormatOptions: Options accepted by date/time formatting functions that delegate toIntl.DateTimeFormat(via Temporal’s.toLocaleString()orTemporalIntl.DateTimeFormat).DateTimeUnit: A date or time unit in the singular, from"year"down to"nanosecond", as Temporal’s rounding and difference options name units.DateUnit: A date unit in the singular:"year","month","week"or"day", as Temporal’s rounding and difference options name units.Disambiguation: How a local wall time that a time zone’s clock shows twice or never is resolved to an instant, as Temporal’sdisambiguationoption (Temporal.ZonedDateTime.from(item, { disambiguation })).DueByRule: A rest that must start within a number of periods of the last one: “a weekly rest by the end of six operator days after the previous one”.DurationRelativeTo: The anchor a calendar-unit duration operation is measured from, as Temporal’srelativeTooption takes it (Duration.prototype.round,Duration.prototype.total,Duration.compare).DurationStringOptions: Precision options for the ISO 8601 duration string adiff*AsDurationfunction writes, passed toTemporal.Duration.prototype.toString().DutyEntry: One status held over a half-open span of time,[start, end): one line of a duty log.DutyRule: One hours-of-work rule over a duty log, every number the caller’s.DutySeverity: Whether a failed rule is a violation (a “must”) or an advisory (a “should”).EasterComputus: Which Easter computus to apply: “gregorian” (the Gregorian method) or “julian” (the Julian calendar’s method, with its date converted to ISO).EdiDatePeriod: A period between two calendar dates, as a UN/EDIFACT period (718) or an X12 range (RD8,RD) states it: the result ofparseEdifactDatePeriodandparseX12DateRange.EdiDateTimePeriod: A period between two local date-times, as a UN/EDIFACT period (719) or an X12 range (RDT,DTS) states it: the result ofparseEdifactDateTimePeriodandparseX12DateTimeRange.EdifactDateFormat: The UN/EDIFACT data element 2379 (Date or time or period format code) value that states a calendar date.EdifactDatePeriodFormat: The UN/EDIFACT data element 2379 value that states a period between two calendar dates.EdifactDateTimeFormat: The UN/EDIFACT data element 2379 values that state a date and a time with no offset: a local time at a place the value does not name.EdifactDateTimePeriodFormat: The UN/EDIFACT data element 2379 value that states a period between two local date-times.EdifactOffsetDateTimeFormat: The UN/EDIFACT data element 2379 values that state a date and a time with an offset from UTC.EdifactTimeFormat: The UN/EDIFACT data element 2379 values that state a time of day with no date and no offset.ElapsedPeriod: An exact length of time, every sliding window of it ending at the instant evaluated.ElapsedWindowRule: A window that opens when work starts after a reset and closeslengthlater, whatever rest falls inside it: “no driving more than 14 hours after work began”.EpcisEventTime: The two time fields every GS1 EPCIS 2.0 (ISO/IEC 19987) event must carry.ExcelDateSystem: Which Excel date system a serial belongs to.FhirDateType: The three FHIR R4 primitive types that carry a date (R4 Datatypes §2.24.0.1).FhirPrecision: How much of a FHIR value is written, coarsest first.FiscalCalendar: Caller-supplied 52/53-week fiscal calendar.FiscalExtraWeek: The period a 53rd week is added to, in a fiscal year that has one.FiscalPattern: Week-per-period shape of a 52/53-week fiscal year, one entry per month of a quarter.FiscalYearLabel: The calendar year that names a fiscal year.FixedPeriodCapRule: A cap on time instatusesover whole local periods: “56 hours in an ISO week”, “90 hours in two adjacent weeks”, “80 hours a week averaged over four”.FixPrecision: How many fraction digits a FIXUTCTimestampstates.FractionalDigit: How many fractional-second digits an ISO string is written with, as Temporal’sfractionalSecondDigitsoption oftoString().FreePeriodRule: A free period of at leastminimumconsecutive rest inside every window: “30 consecutive hours off in every 168”, “36 hours off containing two local nights”, “one day in seven free, averaged over four weeks”.FreeTimeBasis: How days are counted: every local calendar day, or only the terminal’s working days.FreeTimeFirstDay: Whether the day of the triggering event is free day one ("eventDay"), or free time starts on the following counted day ("nextDay").FreeTimeOptions: The tariff terms a free-time count needs.GnssSystem: A satellite navigation system’s time scale, by its RINEX 4.02 time-system identifier: GPS time, Galileo time, BeiDou time, QZSS time, GLONASS time (in UTC hours, as RINEX and BIPM report it), NavIC time.GnssWeekCounter: A satellite week counter, named by system and, where a system broadcasts two, by navigation message: GPS and QZSS LNAV count modulo 1024, their CNAV modulo 8192, Galileo modulo 4096, BeiDou modulo 8192, NavIC LNAV (L5/S) modulo 1024 and L1NV modulo 8192.GtfsTime: A GTFS ScheduleTimevalue split into the whole days past the service day and the seconds left over.Hl7MomentPrecision: The precision of a moment: a minute or finer (Hl7Precisionlists the characters each one takes).Hl7PartialPrecision: The precision of a span: a year, month, day or hour, which names no single moment (Hl7Precisionlists the characters each one takes).HolidayRule: A holiday written as a rule, not a list of dates.Interval: A span of time between two ISO 8601 instant strings, half-open:[start, end).IsoWeekday: An ISO weekday number: 1 (Monday) through 7 (Sunday), asTemporal.PlainDate#dayOfWeekreads it.IsoWeeksPeriod: A count of ISO weeks (Monday to Sunday) in the reference zone, the last the current one.JulianDateParts: A Julian Date in two parts, whose sum is the JD (ERFAjd2cal.cNote 2: the date “is apportioned in any convenient way between the arguments”).Leg: One leg of a multi-modal journey: a departure, how long it takes, and where it lands.LocaleNameStyle: The calendar-name styles supported by GMT’s locale name lookups.LocalPeriod: A count of local periods in the reference zone: aPeriodthat is not an elapsed duration.LocalTimeClassification: What a zoneless wall time turns out to be once a zone is attached to it.LocalWindow: A daily window of local wall time, half-open: open fromfromup to (not including)to.ObservancePolicy: Per ISO weekday of the holiday (1 Monday to 7 Sunday), the shift to apply.ObservanceShift: Where a holiday that falls on one weekday is observed instead.OccurrenceCapRule: A cap on how many local periods hold a status: “night duty no more often than every third night”, “duty started on at most 6 of any 7 days”.OccurrenceWindow: Which occurrences to expand: every one inside an interval, or the firstcountafter an instant.Offset: What to do when the UTC offset written in a zoned value disagrees with its time zone, as Temporal’soffsetoption (Temporal.ZonedDateTime.prototype.with(item, { offset })).OffsetInstant: An absolute instant paired with the local UTC offset in force where the event happened.OperatingOverride: One local date whose windows differ from the weekly pattern.OperatingSchedule: Weekly opening hours in one zone, with dated exceptions.OperatorDaysPeriod: A count of operator-designated days, the last of them the day the instant falls in.Overflow: What to do when a date or time field is out of range, as Temporal’soverflowoption (Temporal.PlainDate.prototype.add(item, { overflow })).PairSpec: A paired rest: two separate rest periods that together count as one, when all three floors hold.ParquetInt96: A ParquetINT96timestamp as most readers expose it: a Julian Day Number and the nanoseconds into that day.PatternRule: A count of rests by class inside a window: “at least 4 weekly rests in any 4 weeks, at least 2 of them regular”.Period: The span a rule looks back over: an exact elapsed duration, or a count of local periods in the reference zone.ProtoDuration: A protobufgoogle.protobuf.Durationas protobuf libraries expose it.ProtoTimestamp: A protobufgoogle.protobuf.Timestampas protobuf libraries expose it.PtpTimestamp: A PTP (IEEE 1588) timestamp: 32 bits of nanoseconds and 48 bits (80 - 32) of whole seconds, 80 bits in all (RFC 8877 section 4.3).PunctualityTolerance: The caller’s punctuality tolerance, as ISO 8601 durations of exact time (a day is 24 hours; years, months and weeks are refused; neither may be negative).QuotaRule: A cap on how often a short rest is taken: “at most 3 reduced rests between two full rests”.RecurrenceDay: OneBYDAYentry: a weekday, optionally the nth such weekday of the period.RecurrenceFrequency: How often an RFC 5545 §3.3.10 rule repeats (FREQ).RecurrenceRule: A parsed RFC 5545 §3.3.10 recurrence rule.RelativeRoundingMethod: How theformatRelative*functions round a fractional distance to a whole number of the unit displayed.RelativeTimeFormatOptions: Core fields shared by all relative-time formatting interfaces.RelativeUnit: Canonical 7-member unit forIntl.RelativeTimeFormatand Temporalsince/untiltotals, excludingquarter.RequiredInterruptionRule: A required break after a stretch of counted time: “30 minutes after 8 hours driving”.Reset: A rest that resets a counter: a run of at leastconsecutivein any ofstatuses.RestBeforeDutyRule: A rest required before each duty: “10 hours off in the 24 before a duty”, “rest before duty at least as long as the duty before it, and never under 12 hours”.RestRequirementRule: A minimum of rest inside every window: “10 hours of rest in every 24, in at most two periods, one at least 6 hours long”.RinexWeekSystem: The systems whose RINEX navigation records carry a week number.RollConvention: WhatrollDatedoes when a date lands on a non-business day.RollingCapRule: A cap on time instatusesinside a window: “60 hours in 7 operator days”, “100 hours in 672 hours”.RoundingOptions: How a difference is rounded, as the rounding options of Temporal’suntil()andsince()(Temporal.PlainDate.prototype.until(other, options)).ScheduleDeliveryOptions: Options forscheduleDelivery.TimeCycleField: A time fieldcycleTime,cycleDateTimeandcycleZonedcan step and wrap, from"hour"down to"nanosecond": the fields of Temporal’sPlainTime.TimeDurationUnit: A time field of an ISO 8601 duration, in the plural, from"hours"down to"nanoseconds".TimeScale: A time scale a Julian Date, Modified Julian Date or J2000 count can be taken on: UTC, TAI, Terrestrial Time or Geocentric Coordinate Time.TimestampClass: What a transport timestamp claims to be, in DCSA’seventClassifierCodevocabulary:TimestampEvent: One recorded timestamp of an event: what it claims, when it claims it, and when that claim was recorded.TimeUnit: A time unit in the singular, from"hour"down to"nanosecond", as Temporal’s rounding and difference options name units.TwoDigitYearOptions: How a two-digit year (yyin a pattern,YYMMDDin an EDI value) gets its century.UnixUnit: Unit accepted byepochUnitin unix-epoch functions.UsageLookbackRule: An allowance used at most once inside a window, restored by a rest: “not used within the previous 7 days unless 34 hours off came between”.WeekdayOrdinal: Which occurrence of a weekday in a month to pick.X12DateFormat: The X12 data element 1250 (Date Time Period Format Qualifier) values that state a calendar date.X12DateRangeFormat: The X12 data element 1250 values that state a range between two calendar dates, transmitted with its hyphen.X12DateTimeFormat: The X12 data element 1250 values that state a date and a time with no offset: a local time at a place the value does not name.X12DateTimeRangeFormat: The X12 data element 1250 values that state a range between two local date-times, transmitted with its hyphen.X12OffsetTimeCode: The 31 X12 data element 623 time codes that state an offset from UTC, the codesx12TimeCodeOffsetreads.X12TimeFormat: The X12 data element 1250 values that state a time of day.X12ZoneTimeCode: The 25 X12 data element 623 time codes that name a zone and state no offset, the codesx12TimeCodeZonereads.ZoneBucketUnit: UnitsfloorToZoneandbucketRangefloor an instant to, in a target time zone.
Documented with their function
Section titled “Documented with their function”BillingDates: The dates a billing timeline is counted from: the anchor, and the invoice and request once they exist.BillingDeadlines: WhatbillingTimelinereturns: each deadline as an ISO date, and each comparison once its date exists.BillingWindows: The three windows the caller supplies, in calendar days, none defaulted, and an optional agreed resolution date.BillOfLadingEvent: Which date on a bill of lading a value is rendered for, one per dated field of the DCSA Bill of Lading 3.0TransportDocument:BolTimestampOptions: Options forbolTimestamp.BusinessCalendarSpec: The input ofbuildBusinessCalendar: a weekend, a list of holiday rules and the years to expand them over.ClassifiedTimestamp: WhatbestAvailablereturns: the chosen timestamp and the class it carries.ClockDirection: Which leg of the container’s cycle the clock is on.ClockEvent: A container event: what happened and the instant it happened.ClockEventType: The events a container’s charging clocks run between, named after the DCSA Track & Trace equipment events they correspond to (equipmentEventTypeCodewithemptyIndicatorCode):ClockOptions: The optionsdemurrageClockreads.ClockScope: Which charge is being clocked.ClockStartEvent: Where an import demurrage, storage or combined clock starts, when the tariff says so.CronRun: One run of a cron schedule in a zone.CronTransitionPolicy: HowcronRunstreats a scheduled wall time that a zone transition skips or repeats:"crontabMatch"matches the schedule against each real wall time;"daemonCatchUp"runs a skipped job once after the gap, as a cron daemon does.Crossing: WhatcrossingTimereturns: exact elapsed time plus the local view at either end.Cutoff: One named deadline in a cut-off stack: how long before the anchor, and at what local time.CutoffScheduleOptions: Options forcutoffSchedule:cutoffAt’s, withatLocalTimeread from each entry instead.CutoffTime: One computed deadline in a cut-off schedule.DeliverySchedule: WhatscheduleDeliveryreturns: the final local ETA and every leg’s times.DriftReport: WhatestimateDriftreturns.DstTransition: A single DST transition instant: the UTC instant of an offset change plus the offset in effect immediately before and after it.DutyDay: The operator-designated day: a 24-hour period that starts atdayStartTimeintimeZone, wherever the person is.DutyReport: Every rule of a regime evaluated at one instant.DutyViolation: One failed window in a range, for the record.Dwell: WhatdwellTimereturns: exact elapsed time plus the local view every charging regime counts in.EdifactDtmFormat: The UN/EDIFACT data element 2379 (Date or time or period format code) values GMT reads and writes: 11 codes, each in the union of the one kind of value it states.EdifactDtmFormatClass: A UN/EDIFACT data element 2379 format code with the kind of value it states: the result ofclassifyEdifactDtmFormat.EndOfTimeUnit: UnitsendOfTimeaccepts: a Temporal time unit, or"day"for the last moment of the day, each singular or plural.EpcisInstant: When a GS1 EPCIS 2.0 event happened, read three ways: the instant, the UTC offset in force where it happened, and the local wall clock there.EstimateDriftOptions: Options forestimateDrift.ExactDurationUnit: The plural name of a duration field that has an exact length:"days", or a time field from"hours"down to"nanoseconds".ExpandRecurrenceOptions: Options forexpandRecurrence.FhirDateTime: A FHIRdate,dateTimeorinstantvalue, read as sent.FhirFormatOptions: Options forformatFHIR.FixUtcTimestamp: A FIXUTCTimestamp(YYYYMMDD-HH:MM:SS[.fraction]) read as an instant plus what the digits stated.FormatCalendarOptions: Options forformatCalendar: the date-time the value is compared with, and the style of the time-of-day half.FormatCalendarUnixOptions: Options forformatCalendarUnix.FormatCalendarUtcOptions: Options forformatCalendarUtc: the instant the day label is measured from, the time zone the days and the clock time are read in, and the width of the time-of-day half.FormatCalendarZonedOptions: Options forformatCalendarZoned: the moment the day label is measured from and the length of the time-of-day half.FormatDurationOptions: HowformatDurationwrites unit names, and whether it writes zero components.FormatRelativeDateOptions: Options forformatRelativeDate: the reference date, the display unit, the rounding and the wording.FormatRelativeDateTimeOptions: Options forformatRelativeDateTime: the reference date-time, the display unit, the rounding and the wording.FormatRelativeTimeOptions: Options forformatRelativeTime: the reference time, the display unit, the rounding and the wording.FormatRelativeUnixOptions: Options forformatRelativeUnix: the wording of the phrase, the unit and rounding of the distance, and the reference instant, epoch unit and time zone the distance is measured with.FormatRelativeUtcOptions: Options forformatRelativeUtc: the instant the distance is measured from, the unit it is shown in, how it rounds, and the wordingIntl.RelativeTimeFormatuses.FormatRelativeZonedOptions: Options forformatRelativeZoned: how the phrase is worded, the unit it counts in, how the count rounds and the moment the distance is measured from.FormatTimeZoneNameOptions: Options forformatTimeZoneName: the form the zone name is written in.FormatUnixOptions: Options forformatUnix: everyIntl.DateTimeFormatOptionsfield, plus the epoch unit, the time zone the value is rendered in and whether the zone name is shown.FormatUtcOptions: Options forformatUtc.FreeTime: WhatfreeTimeExpiryreturns: the free-time window as local dates, and the instant it ends.FreeTimeChargeOptions:FreeTimeOptionsplus how charged days are counted, and the optional tier boundaries.FreeTimeCharges: WhatchargeableDaysreturns: the day count an invoice bills, and the dates that back it.GnssWeek: A week and time of week on one satellite week counter.Headway: A headway service: a departure everyheadwayfromfrom, up to (not including)to— the shape of a GTFSfrequencies.txtrow (headway_secs,start_time,end_time; GTFS Schedule Reference, https://github.com/google/transit/blob/master/gtfs/spec/en/reference.md#frequenciestxt).Hl7DateTime: An HL7 v2 date-time (DTM, 2.A.22; orTS, 2.A.77) read as what it states.Hl7FormatOptions: Options forformatHL7.Hl7Precision: The precision of an HL7 v2 date-time, coarsest first.HolidayDatesOptions: Options ofholidayDates.IsValidDateRangeProps: The argument object ofisValidDateRange.LegTime: One leg’s computed times, with the leg’s own tags echoed back.MultimodalJourney: WhatmultimodalETAreturns: the end-to-end ETA, with the time moving and the time waiting kept apart.NanosecondTruncationUnit: Storage precision a nanosecond value can be truncated to.NextDepartureOptions: Options fornextDeparture.NotamValidity: A NOTAM validity value: item B) (when the NOTAM comes into force) or item C) (when it ceases), as read byparseNotamValidity.NowUnit: Units extractable from the current system local time viagetNowUnit.OnTimeRate: WhatpunctualityRatereturns: the on-time count, the total, and their ratio.PeriodBasis: Which arithmetic a window used: exact elapsed time, operator days, or local calendar periods.PlainNowUnit: Units extractable from a unix epoch value viaparseUnitFromUnix.PlannedActual: One planned/actual pair forpunctualityRate.Punctuality: An arrival’s punctuality against aPunctualityTolerance.RecurrenceOccurrence: One occurrence of a rule in a zone.RelativeDateTimeUnit: Full 7-memberRelativeUnitforPlainDateTime-based formatting.RelativeDateUnit: NarrowRelativeUnitforPlainDate-based formatting.RelativeTimeUnit: NarrowRelativeUnitforPlainTime-based formatting.RestPair: Two rest periods that satisfy aPairSpec, in the order they were taken.RinexWeek: A week and time of week as a RINEX navigation record counts them: continuous, so no era.RolloverEra: Which pass of a wrapping week counter a week number belongs to, in one of three forms.RuleOutcome: One rule evaluated at one instant, reported whether or not it binds.SnowflakeLayout: Where the timestamp sits in a Snowflake id.StartOfTimeUnit: UnitsstartOfTimeaccepts: a Temporal time unit, or"day"for midnight, each singular or plural.StoredZonedClassification: WhatclassifyStoredZonedfinds when an RFC 9557 string carries both a UTC offset and a bracketed IANA zone.TierBand: A band of chargeable-day ordinals and how many of the charged days fell in it.TimeZoneNameStyle: Name style forformatTimeZoneName, mirroringIntl.DateTimeFormatOptions’stimeZoneNamevalues.Ttl: One length from now, in each form a receiver wants.UnixNowUnit: Units extractable from the current Unix timestamp in UTC viagetUnixNowUnit.UtcNowUnit: Units extractable from the current UTC instant viagetUtcNowUnit.UtcUnit: Units supported byparseUnitFromUtcwhen extracting a value from a UTC ISO string.WallClockSpanUnit: UnitsspanWallClockmeasures a calendar distance in.X12DateTimePeriodFormat: The X12 data element 1250 (Date Time Period Format Qualifier) values GMT reads and writes: 10 codes, each in the union of the one kind of value it states.X12DateTimePeriodFormatClass: An X12 data element 1250 format qualifier with the kind of value it states: the result ofclassifyX12DateTimePeriodFormat.X12NamedZone: The zone an X12 data element 623 time code names: the result ofx12TimeCodeZone.X12TimeCode: The 56 X12 data element 623 (Time Code) values, release 008010, read from Stedi’s X12-licensed dictionary; the X12 text itself was not reached.X12TimeCodeClass: An X12 data element 623 time code with what it states: the result ofclassifyX12TimeCode.X12TimeElementForm: The four forms of X12 data element 337 (Time), each named by the element’s own mask.ZonedNowUnit: Units extractable from the current time in a specific IANA timeZone, as consumed bygetZonedNowUnit.ZonedOffsetUnit: Unit a zoned value’s UTC offset can be read as viagetZonedOffsetAs.ZonedParseUnit: Units supported byparseUnitFromZonedwhen extracting a value from a zoned ISO string.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.