@northguild/gmt 1.21.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/aviation/format/formatSsimDate.d.ts +35 -0
- package/dist/aviation/format/formatSsimDate.js +55 -0
- package/dist/aviation/format/index.d.ts +2 -0
- package/dist/aviation/format/index.js +3 -0
- package/dist/aviation/index.d.ts +9 -0
- package/dist/aviation/index.js +10 -0
- package/dist/aviation/parse/index.d.ts +4 -0
- package/dist/aviation/parse/index.js +5 -0
- package/dist/aviation/parse/parseMetarTime.d.ts +33 -0
- package/dist/aviation/parse/parseMetarTime.js +40 -0
- package/dist/aviation/parse/parseNotamValidity.d.ts +39 -0
- package/dist/aviation/parse/parseNotamValidity.js +44 -0
- package/dist/aviation/parse/parseSsimDate.d.ts +35 -0
- package/dist/aviation/parse/parseSsimDate.js +41 -0
- package/dist/aviation/validate/index.d.ts +4 -0
- package/dist/aviation/validate/index.js +5 -0
- package/dist/aviation/validate/isValidMetarTime.d.ts +21 -0
- package/dist/aviation/validate/isValidMetarTime.js +28 -0
- package/dist/aviation/validate/isValidNotamValidity.d.ts +26 -0
- package/dist/aviation/validate/isValidNotamValidity.js +32 -0
- package/dist/aviation/validate/isValidSsimDate.d.ts +23 -0
- package/dist/aviation/validate/isValidSsimDate.js +29 -0
- package/dist/calendar/business/businessDaysBetween.js +7 -5
- package/dist/calendar/calculate/bucketRange.js +10 -7
- package/dist/calendar/calculate/floorToZone.d.ts +2 -5
- package/dist/calendar/calculate/floorToZone.js +8 -11
- package/dist/calendar/calculate/getFiscalPeriod.js +3 -3
- package/dist/calendar/calculate/getQuarter.js +3 -3
- package/dist/calendar/index.js +8 -8
- package/dist/calendar/validate/index.js +1 -1
- package/dist/calendar/validate/isValidFiscalCalendar.js +2 -12
- package/dist/calendar/validate/isValidFiscalExtraWeek.js +3 -2
- package/dist/calendar/validate/isValidFiscalPattern.js +3 -2
- package/dist/calendar/validate/isValidFiscalYearLabel.js +3 -2
- package/dist/calendar/validate/isValidZoneBucketUnit.js +2 -4
- package/dist/duration/calculate/absDuration.js +4 -4
- package/dist/duration/calculate/addDuration.js +6 -4
- package/dist/duration/calculate/durationFromUnits.js +2 -2
- package/dist/duration/calculate/getDurationSign.js +4 -4
- package/dist/duration/calculate/getDurationUnit.js +5 -5
- package/dist/duration/calculate/negateDuration.js +4 -4
- package/dist/duration/calculate/subtractDuration.js +6 -4
- package/dist/duration/calculate/totalDuration.d.ts +10 -11
- package/dist/duration/calculate/totalDuration.js +15 -16
- package/dist/duration/calculate/totalUnits.js +2 -2
- package/dist/duration/calculate/totalUnitsFromNow.js +3 -3
- package/dist/duration/calculate/ttlFromNow.js +2 -2
- package/dist/duration/compare/compareDurations.d.ts +10 -11
- package/dist/duration/compare/compareDurations.js +16 -14
- package/dist/duration/format/formatDuration.js +6 -6
- package/dist/duration/format/formatHumanDuration.js +2 -2
- package/dist/duration/index.js +1 -1
- package/dist/duration/normalize/normalizeDuration.d.ts +10 -11
- package/dist/duration/normalize/normalizeDuration.js +15 -18
- package/dist/duration/parse/parseDuration.js +6 -5
- package/dist/duration/validate/isValidDuration.js +2 -2
- package/dist/finance/format/formatFixUtcTimestamp.d.ts +43 -0
- package/dist/finance/format/formatFixUtcTimestamp.js +60 -0
- package/dist/finance/format/formatSwiftDate.d.ts +30 -0
- package/dist/finance/format/formatSwiftDate.js +46 -0
- package/dist/finance/format/index.d.ts +3 -0
- package/dist/finance/format/index.js +4 -0
- package/dist/finance/index.d.ts +8 -0
- package/dist/finance/index.js +9 -0
- package/dist/finance/parse/index.d.ts +3 -0
- package/dist/finance/parse/index.js +4 -0
- package/dist/finance/parse/parseFixUtcTimestamp.d.ts +50 -0
- package/dist/finance/parse/parseFixUtcTimestamp.js +56 -0
- package/dist/finance/parse/parseSwiftDate.d.ts +34 -0
- package/dist/finance/parse/parseSwiftDate.js +41 -0
- package/dist/finance/validate/index.d.ts +3 -0
- package/dist/finance/validate/index.js +4 -0
- package/dist/finance/validate/isValidFixUtcTimestamp.d.ts +26 -0
- package/dist/finance/validate/isValidFixUtcTimestamp.js +8 -0
- package/dist/finance/validate/isValidSwiftDate.d.ts +21 -0
- package/dist/finance/validate/isValidSwiftDate.js +28 -0
- package/dist/gnss/convert/gnssToUtc.d.ts +2 -2
- package/dist/gnss/convert/gnssToUtc.js +2 -2
- package/dist/gnss/convert/gnssWeekToUtc.d.ts +3 -2
- package/dist/gnss/convert/gnssWeekToUtc.js +3 -2
- package/dist/healthcare/format/formatFHIR.d.ts +54 -0
- package/dist/healthcare/format/formatFHIR.js +152 -0
- package/dist/healthcare/format/formatHL7.d.ts +62 -0
- package/dist/healthcare/format/formatHL7.js +187 -0
- package/dist/healthcare/format/index.d.ts +3 -0
- package/dist/healthcare/format/index.js +4 -0
- package/dist/healthcare/index.d.ts +11 -0
- package/dist/healthcare/index.js +9 -0
- package/dist/healthcare/parse/index.d.ts +3 -0
- package/dist/healthcare/parse/index.js +4 -0
- package/dist/healthcare/parse/parseFHIR.d.ts +37 -0
- package/dist/healthcare/parse/parseFHIR.js +46 -0
- package/dist/healthcare/parse/parseHL7.d.ts +58 -0
- package/dist/healthcare/parse/parseHL7.js +63 -0
- package/dist/healthcare/validate/index.d.ts +3 -0
- package/dist/healthcare/validate/index.js +4 -0
- package/dist/healthcare/validate/isValidFHIR.d.ts +36 -0
- package/dist/healthcare/validate/isValidFHIR.js +13 -0
- package/dist/healthcare/validate/isValidHL7.d.ts +35 -0
- package/dist/healthcare/validate/isValidHL7.js +42 -0
- package/dist/index.d.ts +61 -3
- package/dist/index.js +165 -119
- package/dist/instant/convert/classifyLocal.d.ts +2 -3
- package/dist/instant/convert/classifyLocal.js +7 -9
- package/dist/instant/convert/fromOffsetInstant.js +2 -27
- package/dist/instant/convert/index.js +1 -1
- package/dist/instant/convert/resolveLocal.d.ts +4 -4
- package/dist/instant/convert/resolveLocal.js +7 -24
- package/dist/instant/convert/toOffsetInstant.d.ts +5 -6
- package/dist/instant/convert/toOffsetInstant.js +7 -55
- package/dist/instant/index.d.ts +1 -1
- package/dist/instant/index.js +1 -1
- package/dist/intermodal/calculate/billingTimeline.js +11 -10
- package/dist/intermodal/calculate/chargeableDays.js +8 -6
- package/dist/intermodal/calculate/demurrageClock.d.ts +2 -2
- package/dist/intermodal/calculate/demurrageClock.js +18 -9
- package/dist/intermodal/calculate/freeTimeExpiry.js +5 -5
- package/dist/intermodal/calculate/multimodalETA.d.ts +3 -0
- package/dist/intermodal/calculate/multimodalETA.js +5 -2
- package/dist/intermodal/format/bolTimestamp.d.ts +4 -6
- package/dist/intermodal/format/bolTimestamp.js +8 -10
- package/dist/intermodal/format/formatEdifactOffsetDateTime.d.ts +3 -2
- package/dist/intermodal/format/formatEdifactOffsetDateTime.js +3 -2
- package/dist/intermodal/format/formatEpcisEvent.js +1 -1
- package/dist/intermodal/index.js +3 -3
- package/dist/intermodal/parse/classifyX12TimeCode.js +2 -11
- package/dist/intermodal/parse/index.js +2 -2
- package/dist/intermodal/parse/parseEdifactDate.js +2 -6
- package/dist/intermodal/parse/parseEdifactDatePeriod.js +2 -6
- package/dist/intermodal/parse/parseEdifactDateTime.js +2 -6
- package/dist/intermodal/parse/parseEdifactDateTimePeriod.js +2 -6
- package/dist/intermodal/parse/parseEdifactOffsetDateTime.d.ts +3 -1
- package/dist/intermodal/parse/parseEdifactOffsetDateTime.js +5 -7
- package/dist/intermodal/parse/parseEdifactTime.js +2 -6
- package/dist/intermodal/parse/parseX12Date.js +2 -6
- package/dist/intermodal/parse/parseX12DateAndTime.d.ts +3 -1
- package/dist/intermodal/parse/parseX12DateAndTime.js +5 -7
- package/dist/intermodal/parse/parseX12DateRange.js +2 -6
- package/dist/intermodal/parse/parseX12DateTime.js +2 -6
- package/dist/intermodal/parse/parseX12DateTimeRange.js +2 -6
- package/dist/intermodal/parse/parseX12Time.js +2 -6
- package/dist/intermodal/parse/x12TimeCodeOffset.js +3 -43
- package/dist/intermodal/parse/x12TimeCodeZone.js +3 -114
- package/dist/intermodal/validate/index.js +1 -1
- package/dist/intermodal/validate/isValidEdifactDate.d.ts +1 -1
- package/dist/intermodal/validate/isValidEdifactDate.js +3 -3
- package/dist/intermodal/validate/isValidEdifactDatePeriod.d.ts +1 -1
- package/dist/intermodal/validate/isValidEdifactDatePeriod.js +3 -3
- package/dist/intermodal/validate/isValidEdifactDateTime.d.ts +1 -1
- package/dist/intermodal/validate/isValidEdifactDateTime.js +3 -3
- package/dist/intermodal/validate/isValidEdifactDateTimePeriod.d.ts +1 -1
- package/dist/intermodal/validate/isValidEdifactDateTimePeriod.js +3 -3
- package/dist/intermodal/validate/isValidEdifactOffsetDateTime.d.ts +1 -1
- package/dist/intermodal/validate/isValidEdifactOffsetDateTime.js +3 -3
- package/dist/intermodal/validate/isValidEdifactTime.d.ts +1 -1
- package/dist/intermodal/validate/isValidEdifactTime.js +3 -3
- package/dist/intermodal/validate/isValidEpcisEvent.js +2 -3
- package/dist/intermodal/validate/isValidEpcisEventTime.js +2 -9
- package/dist/intermodal/validate/isValidEpcisTimeZoneOffset.js +2 -3
- package/dist/intermodal/validate/isValidX12Date.d.ts +1 -1
- package/dist/intermodal/validate/isValidX12Date.js +3 -3
- package/dist/intermodal/validate/isValidX12DateAndTime.d.ts +1 -1
- package/dist/intermodal/validate/isValidX12DateAndTime.js +3 -3
- package/dist/intermodal/validate/isValidX12DateRange.d.ts +1 -1
- package/dist/intermodal/validate/isValidX12DateRange.js +3 -3
- package/dist/intermodal/validate/isValidX12DateTime.d.ts +1 -1
- package/dist/intermodal/validate/isValidX12DateTime.js +3 -3
- package/dist/intermodal/validate/isValidX12DateTimeRange.d.ts +1 -1
- package/dist/intermodal/validate/isValidX12DateTimeRange.js +3 -3
- package/dist/intermodal/validate/isValidX12Time.d.ts +1 -1
- package/dist/intermodal/validate/isValidX12Time.js +3 -3
- package/dist/internal/adjustZonedBusinessDays.d.ts +2 -1
- package/dist/internal/adjustZonedBusinessDays.js +2 -4
- package/dist/internal/businessCalendar.d.ts +1 -1
- package/dist/internal/businessCalendar.js +5 -5
- package/dist/internal/businessDayValues.js +8 -8
- package/dist/internal/calendarDatePairPolicy.d.ts +1 -1
- package/dist/internal/calendarDateString.d.ts +25 -14
- package/dist/internal/calendarDateString.js +34 -19
- package/dist/internal/calendarZonedPairPolicy.d.ts +1 -1
- package/dist/internal/calendarZonedString.d.ts +23 -14
- package/dist/internal/calendarZonedString.js +35 -18
- package/dist/internal/ccsdsAsciiTime.d.ts +91 -0
- package/dist/internal/ccsdsAsciiTime.js +145 -0
- package/dist/internal/compareToToday.d.ts +10 -0
- package/dist/internal/compareToToday.js +23 -0
- package/dist/internal/copticEra.d.ts +12 -0
- package/dist/internal/copticEra.js +189 -0
- package/dist/internal/cutoffAtResolved.js +1 -1
- package/dist/internal/daylightTime.d.ts +3 -1
- package/dist/internal/daylightTime.js +3 -1
- package/dist/internal/deliverySchedule.d.ts +24 -0
- package/dist/internal/deliverySchedule.js +249 -0
- package/dist/internal/durationFrom.d.ts +19 -0
- package/dist/internal/durationFrom.js +26 -0
- package/dist/internal/durationUntilString.js +5 -8
- package/dist/internal/dutyLog.js +1 -1
- package/dist/internal/dutyPeriods.d.ts +1 -1
- package/dist/internal/dutyPeriods.js +4 -5
- package/dist/internal/dutyRules.js +3 -3
- package/dist/internal/ediDateTimeFields.d.ts +75 -2
- package/dist/internal/ediDateTimeFields.js +149 -6
- package/dist/internal/ediDateTimeWriter.d.ts +3 -3
- package/dist/internal/ediDateTimeWriter.js +30 -23
- package/dist/internal/epcisTime.d.ts +22 -0
- package/dist/internal/epcisTime.js +39 -0
- package/dist/internal/exactDuration.js +2 -2
- package/dist/internal/exactMoment.d.ts +25 -3
- package/dist/internal/exactMoment.js +46 -25
- package/dist/internal/fhirDateTime.d.ts +22 -0
- package/dist/internal/fhirDateTime.js +97 -0
- package/dist/internal/fixUtcTimestamp.d.ts +95 -0
- package/dist/internal/fixUtcTimestamp.js +180 -0
- package/dist/internal/formatDateInCalendar.d.ts +1 -1
- package/dist/internal/formatRelativeDuration.js +3 -3
- package/dist/internal/formatterCache.d.ts +12 -0
- package/dist/internal/formatterCache.js +74 -26
- package/dist/internal/freeTimeLedger.d.ts +2 -1
- package/dist/internal/freeTimeLedger.js +7 -6
- package/dist/internal/gnssTimeScales.d.ts +1 -1
- package/dist/internal/gnssWeek.js +2 -2
- package/dist/internal/gtfsServiceDate.d.ts +9 -0
- package/dist/internal/gtfsServiceDate.js +26 -0
- package/dist/internal/gtfsTime.d.ts +34 -0
- package/dist/internal/gtfsTime.js +63 -0
- package/dist/internal/halfOpenIntervals.d.ts +1 -1
- package/dist/internal/hl7DateTime.d.ts +137 -0
- package/dist/internal/hl7DateTime.js +293 -0
- package/dist/internal/holidayRules.js +2 -2
- package/dist/internal/httpDateFields.d.ts +13 -1
- package/dist/internal/httpDateFields.js +45 -1
- package/dist/internal/identifierText.d.ts +1 -1
- package/dist/internal/identifierText.js +1 -1
- package/dist/internal/index.d.ts +21 -5
- package/dist/internal/index.js +26 -10
- package/dist/internal/inputChecks.d.ts +87 -16
- package/dist/internal/inputChecks.js +134 -45
- package/dist/internal/instantFormatOptions.js +2 -2
- package/dist/internal/instantNanoseconds.d.ts +36 -57
- package/dist/internal/instantNanoseconds.js +47 -142
- package/dist/internal/instantStringFromEpochNanoseconds.d.ts +21 -1
- package/dist/internal/instantStringFromEpochNanoseconds.js +39 -1
- package/dist/internal/intervalChecks.d.ts +69 -0
- package/dist/internal/intervalChecks.js +128 -0
- package/dist/internal/intervalNanoseconds.d.ts +66 -1
- package/dist/internal/intervalNanoseconds.js +139 -2
- package/dist/internal/isObject.d.ts +16 -1
- package/dist/internal/isObject.js +21 -2
- package/dist/internal/islamicEpochEra.d.ts +24 -0
- package/dist/internal/islamicEpochEra.js +199 -0
- package/dist/internal/isoStringBody.d.ts +84 -21
- package/dist/internal/isoStringBody.js +146 -45
- package/dist/internal/japaneseNumerals.d.ts +17 -0
- package/dist/internal/japaneseNumerals.js +51 -0
- package/dist/internal/julianDate.d.ts +147 -0
- package/dist/internal/julianDate.js +280 -0
- package/dist/internal/leapSeconds.d.ts +13 -1
- package/dist/internal/leapSeconds.js +18 -2
- package/dist/internal/localResolution.js +2 -2
- package/dist/internal/localeMonthNames.js +2 -2
- package/dist/internal/localeNames.d.ts +5 -0
- package/dist/internal/localeNames.js +90 -0
- package/dist/internal/metarTime.d.ts +16 -0
- package/dist/internal/metarTime.js +85 -0
- package/dist/internal/normalizeTimeZone.d.ts +1 -1
- package/dist/internal/normalizeTimeZone.js +5 -5
- package/dist/internal/notamDateTime.d.ts +25 -0
- package/dist/internal/notamDateTime.js +59 -0
- package/dist/internal/offsetInstant.d.ts +58 -0
- package/dist/internal/offsetInstant.js +168 -0
- package/dist/internal/operatingSchedule.js +15 -14
- package/dist/internal/patternKey.d.ts +11 -0
- package/dist/internal/patternKey.js +38 -0
- package/dist/internal/patternToken.d.ts +7 -5
- package/dist/internal/patternToken.js +21 -18
- package/dist/internal/plainDateAdd.js +2 -2
- package/dist/internal/plainDateSteps.d.ts +64 -0
- package/dist/internal/plainDateSteps.js +134 -0
- package/dist/internal/plainDateUntil.js +2 -3
- package/dist/internal/plainFormatOptions.d.ts +2 -1
- package/dist/internal/plainFormatOptions.js +2 -1
- package/dist/internal/plainOptionEntries.d.ts +16 -0
- package/dist/internal/plainOptionEntries.js +33 -0
- package/dist/internal/protoRecord.d.ts +21 -0
- package/dist/internal/protoRecord.js +40 -14
- package/dist/internal/ptpTimestamp.d.ts +33 -0
- package/dist/internal/ptpTimestamp.js +48 -0
- package/dist/internal/rangeDetector.d.ts +31 -0
- package/dist/internal/rangeDetector.js +512 -0
- package/dist/internal/rangeFallback.d.ts +34 -0
- package/dist/internal/rangeFallback.js +111 -0
- package/dist/internal/rangeFieldValues.d.ts +39 -0
- package/dist/internal/rangeFieldValues.js +167 -0
- package/dist/internal/rangeFields.d.ts +34 -0
- package/dist/internal/rangeFields.js +130 -0
- package/dist/internal/rangeHooks.d.ts +53 -0
- package/dist/internal/rangeHooks.js +26 -0
- package/dist/internal/rangeRepairs.d.ts +4 -0
- package/dist/internal/rangeRepairs.js +16 -0
- package/dist/internal/readDateTimeFormatOptions.d.ts +7 -9
- package/dist/internal/readDateTimeFormatOptions.js +19 -24
- package/dist/internal/readSetFields.d.ts +47 -0
- package/dist/internal/readSetFields.js +58 -1
- package/dist/internal/repairRangeText.d.ts +26 -0
- package/dist/internal/repairRangeText.js +69 -0
- package/dist/internal/resolveDateTimeUnit.js +3 -3
- package/dist/internal/resolveDurationRelativeTo.d.ts +20 -11
- package/dist/internal/resolveDurationRelativeTo.js +21 -20
- package/dist/internal/resolveDurationUnit.d.ts +35 -1
- package/dist/internal/resolveDurationUnit.js +49 -4
- package/dist/internal/resolveLocalInstant.d.ts +14 -0
- package/dist/internal/resolveLocalInstant.js +40 -0
- package/dist/internal/resolveLocale.d.ts +26 -1
- package/dist/internal/resolveLocale.js +44 -3
- package/dist/internal/resolveOverflow.d.ts +1 -0
- package/dist/internal/resolveOverflow.js +2 -0
- package/dist/internal/resolveUnixIntervalPair.js +2 -2
- package/dist/internal/rfc3339DateTime.d.ts +11 -0
- package/dist/internal/rfc3339DateTime.js +29 -0
- package/dist/internal/rfc5322DateTime.d.ts +12 -1
- package/dist/internal/rfc5322DateTime.js +31 -1
- package/dist/internal/setZonedFields.d.ts +24 -0
- package/dist/internal/setZonedFields.js +26 -0
- package/dist/internal/ssimDate.d.ts +25 -0
- package/dist/internal/ssimDate.js +70 -0
- package/dist/internal/startOrEndOfUnix.js +1 -1
- package/dist/internal/startOrEndOfUtc.js +7 -6
- package/dist/internal/startOrEndOfZoned.js +7 -7
- package/dist/internal/swiftDate.d.ts +28 -0
- package/dist/internal/swiftDate.js +60 -0
- package/dist/internal/tai64Label.d.ts +28 -0
- package/dist/internal/tai64Label.js +63 -0
- package/dist/internal/temporalCompat/capabilities.d.ts +90 -10
- package/dist/internal/temporalCompat/capabilities.js +202 -12
- package/dist/internal/temporalCompat/fieldSearch.js +1 -1
- package/dist/internal/temporalCompat/index.d.ts +2 -3
- package/dist/internal/temporalCompat/index.js +3 -4
- package/dist/internal/temporalCompat/islamicEra.js +13 -6
- package/dist/internal/temporalCompat/probeRepros.d.ts +1 -2
- package/dist/internal/temporalCompat/probeRepros.js +115 -117
- package/dist/internal/temporalCompat/rangeFieldRepros.d.ts +50 -0
- package/dist/internal/temporalCompat/rangeFieldRepros.js +427 -0
- package/dist/internal/temporalCompat/repros.d.ts +18 -2
- package/dist/internal/temporalCompat/repros.js +325 -1
- package/dist/internal/terrestrialTime.d.ts +54 -0
- package/dist/internal/terrestrialTime.js +67 -0
- package/dist/internal/timeScaleString.d.ts +4 -4
- package/dist/internal/timeScaleString.js +2 -2
- package/dist/internal/timestampEvents.d.ts +3 -4
- package/dist/internal/timestampEvents.js +4 -5
- package/dist/internal/todayDate.d.ts +9 -0
- package/dist/internal/todayDate.js +22 -0
- package/dist/internal/typedOptions.d.ts +160 -0
- package/dist/internal/typedOptions.js +231 -0
- package/dist/internal/unitNames.d.ts +159 -0
- package/dist/internal/unitNames.js +227 -0
- package/dist/internal/unixFormatReference.js +2 -8
- package/dist/internal/unixWallClock.d.ts +18 -1
- package/dist/internal/unixWallClock.js +44 -1
- package/dist/internal/utcInstant.d.ts +16 -0
- package/dist/internal/utcInstant.js +30 -0
- package/dist/internal/utcReading.d.ts +2 -0
- package/dist/internal/utcReading.js +7 -6
- package/dist/internal/utcWallClock.js +4 -4
- package/dist/internal/weekNumber.d.ts +20 -0
- package/dist/internal/weekNumber.js +33 -0
- package/dist/internal/weekYearGuard.d.ts +15 -0
- package/dist/internal/weekYearGuard.js +201 -0
- package/dist/internal/weekYearRange.d.ts +47 -0
- package/dist/internal/weekYearRange.js +901 -0
- package/dist/internal/weekYearSynth.d.ts +13 -0
- package/dist/internal/weekYearSynth.js +352 -0
- package/dist/internal/weekYearText.d.ts +120 -0
- package/dist/internal/weekYearText.js +293 -0
- package/dist/internal/x12TimeCodes.d.ts +31 -0
- package/dist/internal/x12TimeCodes.js +198 -0
- package/dist/internal/yearPrinting.d.ts +29 -0
- package/dist/internal/yearPrinting.js +239 -0
- package/dist/internal/yearPrintingRange.d.ts +13 -0
- package/dist/internal/yearPrintingRange.js +198 -0
- package/dist/internal/yearWindowStart.d.ts +29 -1
- package/dist/internal/yearWindowStart.js +33 -2
- package/dist/internal/zoneFrame.js +5 -5
- package/dist/internal/zonedBucket.js +1 -1
- package/dist/internal/zonedDifference/calendarArithmetic.d.ts +3 -4
- package/dist/internal/zonedDifference/calendarArithmetic.js +3 -2
- package/dist/internal/zonedDifference/nudgeWindow.d.ts +2 -3
- package/dist/internal/zonedDifference/nudgeWindow.js +1 -1
- package/dist/internal/zonedDifference/operations.d.ts +2 -3
- package/dist/internal/zonedFormatReference.js +3 -3
- package/dist/internal/zonedWallClock.d.ts +26 -0
- package/dist/internal/zonedWallClock.js +50 -6
- package/dist/internal/zonedWallClockDifference.d.ts +3 -4
- package/dist/internal/zonedWallClockDifference.js +3 -4
- package/dist/internal/zonedWallClockOperations.js +7 -6
- package/dist/internal/zonelessCalendarDate.d.ts +1 -1
- package/dist/internal/zonelessCalendarDate.js +3 -3
- package/dist/interval/calculate/clampInterval.js +2 -2
- package/dist/interval/calculate/index.js +1 -1
- package/dist/interval/calculate/intersectIntervals.js +2 -13
- package/dist/interval/calculate/mergeIntervals.js +2 -11
- package/dist/interval/calculate/subtractIntervals.js +2 -26
- package/dist/interval/compare/intervalContains.d.ts +3 -4
- package/dist/interval/compare/intervalContains.js +5 -14
- package/dist/interval/compare/intervalsOverlap.js +2 -9
- package/dist/interval/index.js +1 -1
- package/dist/interval/validate/isValidInterval.d.ts +4 -8
- package/dist/interval/validate/isValidInterval.js +4 -8
- package/dist/iot/convert/index.d.ts +3 -0
- package/dist/iot/convert/index.js +4 -0
- package/dist/iot/convert/ptpToUtc.d.ts +42 -0
- package/dist/iot/convert/ptpToUtc.js +51 -0
- package/dist/iot/convert/utcToPtp.d.ts +31 -0
- package/dist/iot/convert/utcToPtp.js +47 -0
- package/dist/iot/index.d.ts +5 -0
- package/dist/iot/index.js +6 -0
- package/dist/iot/validate/index.d.ts +2 -0
- package/dist/iot/validate/index.js +3 -0
- package/dist/iot/validate/isValidPtpTimestamp.d.ts +33 -0
- package/dist/iot/validate/isValidPtpTimestamp.js +36 -0
- package/dist/plain/calculate/addDate.js +6 -8
- package/dist/plain/calculate/addDateTime.js +6 -7
- package/dist/plain/calculate/addTime.js +6 -7
- package/dist/plain/calculate/clampDate.js +5 -5
- package/dist/plain/calculate/closestDateTo.js +12 -8
- package/dist/plain/calculate/cycleDate.js +10 -9
- package/dist/plain/calculate/cycleDateTime.js +11 -11
- package/dist/plain/calculate/cycleTime.js +9 -9
- package/dist/plain/calculate/diffDate.js +7 -8
- package/dist/plain/calculate/diffDateAsDuration.js +5 -5
- package/dist/plain/calculate/diffDateTime.js +10 -14
- package/dist/plain/calculate/diffDateTimeAsDuration.js +6 -8
- package/dist/plain/calculate/diffTime.js +10 -13
- package/dist/plain/calculate/endOfDate.js +3 -4
- package/dist/plain/calculate/endOfDateTime.js +5 -5
- package/dist/plain/calculate/endOfQuarterForDate.js +3 -4
- package/dist/plain/calculate/endOfQuarterForDateTime.js +3 -4
- package/dist/plain/calculate/endOfTime.js +5 -5
- package/dist/plain/calculate/getDayOfYear.js +4 -4
- package/dist/plain/calculate/getDaysInMonth.js +4 -4
- package/dist/plain/calculate/getDaysInYear.js +4 -4
- package/dist/plain/calculate/getLargestDateDurationUnit.js +2 -16
- package/dist/plain/calculate/getLargestDateTimeDurationUnit.js +2 -22
- package/dist/plain/calculate/getLargestTimeDurationUnit.js +2 -18
- package/dist/plain/calculate/getLocaleDayOfWeek.js +4 -4
- package/dist/plain/calculate/getLocaleEndOfWeek.js +3 -4
- package/dist/plain/calculate/getLocaleStartOfWeek.js +5 -6
- package/dist/plain/calculate/getLocaleWeekYear.js +3 -4
- package/dist/plain/calculate/getQuarterForDate.js +3 -4
- package/dist/plain/calculate/getQuarterForDateTime.js +3 -4
- package/dist/plain/calculate/getWeekNumber.js +5 -13
- package/dist/plain/calculate/getWeekOfMonth.js +3 -4
- package/dist/plain/calculate/getWeekYear.js +4 -4
- package/dist/plain/calculate/getWeeksInLocaleWeekYear.js +3 -4
- package/dist/plain/calculate/getWeeksInMonth.js +3 -4
- package/dist/plain/calculate/getWeeksInYear.js +4 -4
- package/dist/plain/calculate/index.js +6 -6
- package/dist/plain/calculate/maxDate.js +8 -5
- package/dist/plain/calculate/maxDateTime.js +8 -5
- package/dist/plain/calculate/maxTime.js +8 -5
- package/dist/plain/calculate/minDate.js +8 -5
- package/dist/plain/calculate/minDateTime.js +8 -5
- package/dist/plain/calculate/minTime.js +8 -5
- package/dist/plain/calculate/nextWeekday.js +6 -6
- package/dist/plain/calculate/previousWeekday.js +6 -6
- package/dist/plain/calculate/roundDate.js +8 -8
- package/dist/plain/calculate/roundDateTime.js +8 -8
- package/dist/plain/calculate/roundTime.js +9 -8
- package/dist/plain/calculate/setDate.js +5 -9
- package/dist/plain/calculate/setDateTime.js +5 -9
- package/dist/plain/calculate/setTime.js +5 -9
- package/dist/plain/calculate/sortDateTimes.js +7 -3
- package/dist/plain/calculate/sortDates.js +7 -3
- package/dist/plain/calculate/sortTimes.js +7 -3
- package/dist/plain/calculate/startOfDate.js +6 -26
- package/dist/plain/calculate/startOfDateTime.js +9 -63
- package/dist/plain/calculate/startOfQuarterForDate.js +3 -4
- package/dist/plain/calculate/startOfQuarterForDateTime.js +3 -4
- package/dist/plain/calculate/startOfTime.js +5 -4
- package/dist/plain/calculate/subtractDate.js +6 -8
- package/dist/plain/calculate/subtractDateTime.js +6 -7
- package/dist/plain/calculate/subtractTime.js +6 -7
- package/dist/plain/calculate/weekOfYearForDate.js +4 -4
- package/dist/plain/calculate/weekOfYearForDateTime.js +3 -3
- package/dist/plain/chop/chopDate.js +4 -4
- package/dist/plain/chop/chopMilliseconds.js +5 -5
- package/dist/plain/chop/chopSeconds.js +5 -5
- package/dist/plain/chop/chopTime.js +4 -4
- package/dist/plain/compare/areDateTimesEqual.js +4 -5
- package/dist/plain/compare/areDateTimesEqualBy.js +7 -8
- package/dist/plain/compare/areDatesEqual.js +2 -10
- package/dist/plain/compare/areDatesEqualBy.js +7 -8
- package/dist/plain/compare/areTimesEqual.js +4 -5
- package/dist/plain/compare/isAfterDate.js +5 -3
- package/dist/plain/compare/isAfterDateTime.js +5 -3
- package/dist/plain/compare/isAfterTime.js +5 -3
- package/dist/plain/compare/isBeforeDate.js +5 -3
- package/dist/plain/compare/isBeforeDateTime.js +5 -3
- package/dist/plain/compare/isBeforeTime.js +5 -3
- package/dist/plain/compare/isBetweenDate.js +8 -8
- package/dist/plain/compare/isBetweenDateTime.js +8 -8
- package/dist/plain/compare/isBetweenTime.js +8 -8
- package/dist/plain/compare/isBusinessDay.js +4 -4
- package/dist/plain/compare/isFuture.d.ts +1 -1
- package/dist/plain/compare/isFuture.js +3 -8
- package/dist/plain/compare/isPast.d.ts +1 -1
- package/dist/plain/compare/isPast.js +3 -8
- package/dist/plain/compare/isRelativeDay.d.ts +1 -1
- package/dist/plain/compare/isRelativeDay.js +12 -11
- package/dist/plain/compare/isThisUnit.d.ts +1 -1
- package/dist/plain/compare/isThisUnit.js +14 -12
- package/dist/plain/compare/isWeekend.js +3 -4
- package/dist/plain/convert/convertDateToCalendar.js +4 -4
- package/dist/plain/format/formatCalendar.js +10 -10
- package/dist/plain/format/formatDate.js +4 -4
- package/dist/plain/format/formatDateRange.js +7 -5
- package/dist/plain/format/formatDateTime.js +4 -4
- package/dist/plain/format/formatDateTimeRange.js +8 -5
- package/dist/plain/format/formatDateTimeToParts.js +4 -4
- package/dist/plain/format/formatDateToParts.js +4 -4
- package/dist/plain/format/formatRelativeDate.js +8 -8
- package/dist/plain/format/formatRelativeDateTime.js +8 -8
- package/dist/plain/format/formatRelativeTime.js +8 -8
- package/dist/plain/format/formatSqlDateTime.js +3 -4
- package/dist/plain/format/formatTime.js +4 -3
- package/dist/plain/get/getDateAgo.js +4 -4
- package/dist/plain/get/getDateIn.js +4 -4
- package/dist/plain/get/getDateTimeAgo.js +4 -4
- package/dist/plain/get/getDateTimeIn.js +4 -4
- package/dist/plain/get/getDay.js +2 -2
- package/dist/plain/get/getDayOfWeek.js +2 -2
- package/dist/plain/get/getHour.js +2 -2
- package/dist/plain/get/getMicrosecond.js +2 -2
- package/dist/plain/get/getMillisecond.js +2 -2
- package/dist/plain/get/getMinute.js +2 -2
- package/dist/plain/get/getMonth.js +2 -2
- package/dist/plain/get/getNanosecond.js +2 -2
- package/dist/plain/get/getNow.js +2 -2
- package/dist/plain/get/getNowUnit.js +6 -6
- package/dist/plain/get/getSecond.js +2 -2
- package/dist/plain/get/getTimeAgo.js +4 -4
- package/dist/plain/get/getTimeIn.js +4 -4
- package/dist/plain/get/getToday.js +2 -9
- package/dist/plain/get/getWeekOfYear.js +2 -2
- package/dist/plain/get/getYear.js +2 -2
- package/dist/plain/get/index.js +1 -1
- package/dist/plain/index.js +73 -73
- package/dist/plain/interval/index.js +3 -3
- package/dist/plain/interval/intervalAbutsDate.js +6 -7
- package/dist/plain/interval/intervalAbutsDateTime.js +6 -6
- package/dist/plain/interval/intervalAbutsTime.js +6 -6
- package/dist/plain/interval/intervalContainsDate.js +7 -8
- package/dist/plain/interval/intervalContainsDateTime.js +7 -7
- package/dist/plain/interval/intervalContainsTime.js +7 -7
- package/dist/plain/interval/intervalCountDate.js +5 -5
- package/dist/plain/interval/intervalCountDateTime.js +8 -9
- package/dist/plain/interval/intervalCountTime.js +6 -6
- package/dist/plain/interval/intervalDifferenceDate.js +6 -7
- package/dist/plain/interval/intervalDifferenceDateTime.js +6 -6
- package/dist/plain/interval/intervalDifferenceTime.js +6 -6
- package/dist/plain/interval/intervalDivideEquallyDate.js +4 -5
- package/dist/plain/interval/intervalDivideEquallyDateTime.js +4 -5
- package/dist/plain/interval/intervalDivideEquallyTime.js +4 -5
- package/dist/plain/interval/intervalEngulfsDate.js +6 -7
- package/dist/plain/interval/intervalEngulfsDateTime.js +6 -6
- package/dist/plain/interval/intervalEngulfsTime.js +6 -6
- package/dist/plain/interval/intervalFromDurationDate.js +7 -8
- package/dist/plain/interval/intervalFromDurationDateTime.js +5 -6
- package/dist/plain/interval/intervalFromDurationTime.js +5 -7
- package/dist/plain/interval/intervalIntersectionDate.js +6 -7
- package/dist/plain/interval/intervalIntersectionDateTime.js +6 -6
- package/dist/plain/interval/intervalIntersectionTime.js +6 -6
- package/dist/plain/interval/intervalLengthDate.js +5 -5
- package/dist/plain/interval/intervalLengthDateTime.js +6 -7
- package/dist/plain/interval/intervalLengthTime.js +6 -7
- package/dist/plain/interval/intervalOverlappingDaysDate.js +6 -7
- package/dist/plain/interval/intervalOverlappingDaysDateTime.js +6 -6
- package/dist/plain/interval/intervalSplitAtDate.js +14 -8
- package/dist/plain/interval/intervalSplitAtDateTime.js +14 -7
- package/dist/plain/interval/intervalSplitAtTime.js +14 -7
- package/dist/plain/interval/intervalUnionDate.js +6 -7
- package/dist/plain/interval/intervalUnionDateTime.js +6 -6
- package/dist/plain/interval/intervalUnionTime.js +6 -6
- package/dist/plain/interval/intervalXorAllDate.js +13 -8
- package/dist/plain/interval/intervalXorAllDateTime.js +12 -6
- package/dist/plain/interval/intervalXorAllTime.js +12 -6
- package/dist/plain/interval/intervalXorDate.js +6 -7
- package/dist/plain/interval/intervalXorDateTime.js +6 -6
- package/dist/plain/interval/intervalXorTime.js +6 -6
- package/dist/plain/interval/intervalsOverlapDate.js +6 -7
- package/dist/plain/interval/intervalsOverlapDateTime.js +6 -6
- package/dist/plain/interval/intervalsOverlapTime.js +6 -6
- package/dist/plain/interval/mergeIntervalsDate.js +11 -8
- package/dist/plain/interval/mergeIntervalsDateTime.js +10 -6
- package/dist/plain/interval/mergeIntervalsTime.js +10 -6
- package/dist/plain/interval/splitIntervalByUnitDate.js +4 -4
- package/dist/plain/interval/splitIntervalByUnitDateTime.js +6 -6
- package/dist/plain/interval/splitIntervalByUnitTime.js +6 -6
- package/dist/plain/interval/validate/isValidDateInterval.js +2 -10
- package/dist/plain/interval/validate/isValidDateTimeInterval.d.ts +4 -5
- package/dist/plain/interval/validate/isValidDateTimeInterval.js +6 -14
- package/dist/plain/interval/validate/isValidTimeInterval.d.ts +4 -5
- package/dist/plain/interval/validate/isValidTimeInterval.js +6 -14
- package/dist/plain/locale/getLocaleEraNames.js +2 -35
- package/dist/plain/locale/getLocaleMeridiems.js +2 -18
- package/dist/plain/locale/getLocaleMonthNames.js +2 -24
- package/dist/plain/locale/getLocaleWeekdayNames.js +2 -26
- package/dist/plain/map/mapDatesInRange.js +4 -4
- package/dist/plain/parse/parseDayFromDate.js +4 -4
- package/dist/plain/parse/parseDayFromDateTime.js +4 -4
- package/dist/plain/parse/parseDayOfWeekFromDate.js +4 -4
- package/dist/plain/parse/parseDayOfWeekFromDateTime.js +4 -4
- package/dist/plain/parse/parseHourFromDateTime.js +4 -4
- package/dist/plain/parse/parseHourFromTime.js +4 -4
- package/dist/plain/parse/parseMicrosecondFromDateTime.js +4 -4
- package/dist/plain/parse/parseMicrosecondFromTime.js +4 -4
- package/dist/plain/parse/parseMillisecondFromDateTime.js +4 -4
- package/dist/plain/parse/parseMillisecondFromTime.js +4 -4
- package/dist/plain/parse/parseMinuteFromDateTime.js +4 -4
- package/dist/plain/parse/parseMinuteFromTime.js +4 -4
- package/dist/plain/parse/parseMonthDay.d.ts +2 -3
- package/dist/plain/parse/parseMonthDay.js +2 -3
- package/dist/plain/parse/parseMonthDayFromDate.js +4 -4
- package/dist/plain/parse/parseMonthDayFromDateTime.d.ts +3 -3
- package/dist/plain/parse/parseMonthDayFromDateTime.js +3 -3
- package/dist/plain/parse/parseMonthFromDate.js +4 -4
- package/dist/plain/parse/parseMonthFromDateTime.js +4 -4
- package/dist/plain/parse/parseNanosecondFromDateTime.js +4 -4
- package/dist/plain/parse/parseNanosecondFromTime.js +4 -4
- package/dist/plain/parse/parseSecondFromDateTime.js +4 -4
- package/dist/plain/parse/parseSecondFromTime.js +4 -4
- package/dist/plain/parse/parseUnitFromDate.js +5 -6
- package/dist/plain/parse/parseUnitFromDateTime.js +5 -6
- package/dist/plain/parse/parseUnitFromTime.js +3 -4
- package/dist/plain/parse/parseWeekFromDate.js +5 -4
- package/dist/plain/parse/parseWeekFromDateTime.js +5 -5
- package/dist/plain/parse/parseYearFromDate.js +3 -4
- package/dist/plain/parse/parseYearFromDateTime.js +3 -4
- package/dist/plain/parse/parseYearMonth.d.ts +2 -3
- package/dist/plain/parse/parseYearMonth.js +2 -3
- package/dist/plain/parse/parseYearMonthFromDate.js +4 -4
- package/dist/plain/parse/parseYearMonthFromDateTime.d.ts +3 -2
- package/dist/plain/parse/parseYearMonthFromDateTime.js +3 -2
- package/dist/plain/validate/hasSecond60.d.ts +29 -24
- package/dist/plain/validate/hasSecond60.js +41 -27
- package/dist/plain/validate/index.js +5 -5
- package/dist/plain/validate/isLeapYear.js +4 -4
- package/dist/plain/validate/isValidCalendarDate.d.ts +5 -7
- package/dist/plain/validate/isValidCalendarDate.js +2 -8
- package/dist/plain/validate/isValidDate.d.ts +6 -7
- package/dist/plain/validate/isValidDate.js +2 -2
- package/dist/plain/validate/isValidDateCycleField.js +3 -2
- package/dist/plain/validate/isValidDateDurationUnit.js +3 -1
- package/dist/plain/validate/isValidDateRange.d.ts +2 -2
- package/dist/plain/validate/isValidDateRange.js +8 -8
- package/dist/plain/validate/isValidDateTime.d.ts +6 -7
- package/dist/plain/validate/isValidDateTime.js +1 -1
- package/dist/plain/validate/isValidDateTimeCycleField.js +2 -3
- package/dist/plain/validate/isValidDateTimeDurationUnit.js +3 -1
- package/dist/plain/validate/isValidDateTimeRange.js +6 -5
- package/dist/plain/validate/isValidDateTimeUnit.js +3 -2
- package/dist/plain/validate/isValidDateUnit.js +3 -2
- package/dist/plain/validate/isValidIsoDateLike.d.ts +5 -6
- package/dist/plain/validate/isValidIsoDateLike.js +2 -19
- package/dist/plain/validate/isValidMonthDay.d.ts +5 -8
- package/dist/plain/validate/isValidTime.d.ts +5 -6
- package/dist/plain/validate/isValidTime.js +2 -2
- package/dist/plain/validate/isValidTimeCycleField.js +3 -2
- package/dist/plain/validate/isValidTimeDurationUnit.js +3 -1
- package/dist/plain/validate/isValidTimeRange.js +6 -5
- package/dist/plain/validate/isValidTimeUnit.js +3 -2
- package/dist/plain/validate/isValidYearMonth.d.ts +5 -8
- package/dist/precision/calculate/truncateNanoseconds.js +2 -9
- package/dist/precision/convert/fromDotNetTicks.js +2 -2
- package/dist/precision/convert/fromExcelSerial.js +4 -4
- package/dist/precision/convert/fromFileTime.js +2 -2
- package/dist/precision/convert/fromNanoseconds.js +2 -11
- package/dist/precision/convert/fromNtpTimestamp.js +2 -2
- package/dist/precision/convert/fromPgMicroseconds.js +2 -2
- package/dist/precision/convert/index.js +1 -1
- package/dist/precision/convert/toArrowLocalTimestamp.d.ts +2 -3
- package/dist/precision/convert/toArrowLocalTimestamp.js +2 -3
- package/dist/precision/convert/toArrowTimestamp.d.ts +5 -4
- package/dist/precision/convert/toArrowTimestamp.js +5 -4
- package/dist/precision/convert/toExcelSerial.js +2 -2
- package/dist/precision/convert/toNanoseconds.d.ts +8 -14
- package/dist/precision/convert/toNanoseconds.js +8 -14
- package/dist/precision/convert/toParquetInt96.d.ts +1 -1
- package/dist/precision/convert/toParquetInt96.js +1 -1
- package/dist/precision/convert/toPgMicroseconds.js +2 -2
- package/dist/precision/convert/toProtoTimestamp.d.ts +1 -1
- package/dist/precision/convert/toProtoTimestamp.js +1 -1
- package/dist/precision/identifiers/ulidTimestampPrefix.d.ts +4 -3
- package/dist/precision/identifiers/ulidTimestampPrefix.js +4 -3
- package/dist/precision/identifiers/uuidV7TimestampPrefix.d.ts +4 -3
- package/dist/precision/identifiers/uuidV7TimestampPrefix.js +4 -3
- package/dist/precision/index.js +6 -6
- package/dist/precision/parse/parseNanoseconds.js +2 -2
- package/dist/precision/validate/isValidInstant.d.ts +9 -20
- package/dist/precision/validate/isValidInstant.js +2 -2
- package/dist/precision/validate/isValidInt64NanosecondDateTime.d.ts +1 -1
- package/dist/precision/validate/isValidNanoPattern.js +2 -5
- package/dist/rail/convert/gtfsToInstant.d.ts +46 -0
- package/dist/rail/convert/gtfsToInstant.js +69 -0
- package/dist/rail/convert/index.d.ts +2 -0
- package/dist/rail/convert/index.js +3 -0
- package/dist/rail/format/formatGtfsTime.d.ts +25 -0
- package/dist/rail/format/formatGtfsTime.js +37 -0
- package/dist/rail/format/index.d.ts +2 -0
- package/dist/rail/format/index.js +3 -0
- package/dist/rail/index.d.ts +8 -0
- package/dist/rail/index.js +7 -0
- package/dist/rail/parse/index.d.ts +2 -0
- package/dist/rail/parse/index.js +3 -0
- package/dist/rail/parse/parseGtfsTime.d.ts +27 -0
- package/dist/rail/parse/parseGtfsTime.js +32 -0
- package/dist/rail/validate/index.d.ts +2 -0
- package/dist/rail/validate/index.js +3 -0
- package/dist/rail/validate/isValidGtfsTime.d.ts +21 -0
- package/dist/rail/validate/isValidGtfsTime.js +28 -0
- package/dist/recurrence/calculate/cronRuns.js +1 -1
- package/dist/recurrence/calculate/expandRecurrence.js +3 -3
- package/dist/recurrence/parse/parseRecurrenceRule.d.ts +1 -1
- package/dist/recurrence/parse/parseRecurrenceRule.js +1 -1
- package/dist/regex/calendar-date.d.ts +2 -2
- package/dist/regex/calendar-date.js +2 -2
- package/dist/regex/calendar-zoned-date-time.d.ts +2 -3
- package/dist/regex/calendar-zoned-date-time.js +2 -3
- package/dist/regex/date-time.d.ts +3 -3
- package/dist/regex/date-time.js +3 -3
- package/dist/regex/date.d.ts +3 -3
- package/dist/regex/date.js +3 -3
- package/dist/regex/fhir.d.ts +74 -0
- package/dist/regex/fhir.js +77 -0
- package/dist/regex/index.d.ts +2 -1
- package/dist/regex/index.js +4 -3
- package/dist/regex/leap-second.d.ts +3 -2
- package/dist/regex/leap-second.js +3 -2
- package/dist/regex/month-day.d.ts +3 -2
- package/dist/regex/month-day.js +3 -2
- package/dist/regex/time.d.ts +3 -3
- package/dist/regex/time.js +3 -3
- package/dist/regex/utc-date-time.d.ts +3 -3
- package/dist/regex/utc-date-time.js +3 -3
- package/dist/regex/year-month.d.ts +3 -2
- package/dist/regex/year-month.js +3 -2
- package/dist/span/calculate/index.js +1 -1
- package/dist/span/calculate/spanMs.d.ts +8 -17
- package/dist/span/calculate/spanMs.js +10 -19
- package/dist/span/calculate/spanNs.d.ts +8 -17
- package/dist/span/calculate/spanNs.js +10 -22
- package/dist/span/calculate/spanSeconds.d.ts +2 -2
- package/dist/span/calculate/spanSeconds.js +4 -4
- package/dist/span/calculate/spanWallClock.js +4 -2
- package/dist/span/index.js +1 -1
- package/dist/span/validate/isValidSpan.d.ts +4 -13
- package/dist/span/validate/isValidSpan.js +4 -13
- package/dist/timescale/calculate/index.d.ts +2 -1
- package/dist/timescale/calculate/index.js +2 -1
- package/dist/timescale/calculate/leapSecondsBetween.js +1 -1
- package/dist/timescale/calculate/nextLeapSecond.js +1 -1
- package/dist/timescale/calculate/taiMinusUtc.js +1 -1
- package/dist/timescale/calculate/tcgMinusTt.d.ts +21 -0
- package/dist/timescale/calculate/tcgMinusTt.js +38 -0
- package/dist/timescale/convert/fromJ2000Seconds.d.ts +29 -0
- package/dist/timescale/convert/fromJ2000Seconds.js +46 -0
- package/dist/timescale/convert/fromJulianDate.d.ts +28 -0
- package/dist/timescale/convert/fromJulianDate.js +45 -0
- package/dist/timescale/convert/fromJulianDateParts.d.ts +35 -0
- package/dist/timescale/convert/fromJulianDateParts.js +61 -0
- package/dist/timescale/convert/fromModifiedJulianDate.d.ts +30 -0
- package/dist/timescale/convert/fromModifiedJulianDate.js +47 -0
- package/dist/timescale/convert/fromTAI.d.ts +3 -2
- package/dist/timescale/convert/fromTAI.js +5 -4
- package/dist/timescale/convert/fromTCG.d.ts +26 -0
- package/dist/timescale/convert/fromTCG.js +43 -0
- package/dist/timescale/convert/fromTT.d.ts +24 -0
- package/dist/timescale/convert/fromTT.js +41 -0
- package/dist/timescale/convert/fromTai64n.d.ts +36 -0
- package/dist/timescale/convert/fromTai64n.js +52 -0
- package/dist/timescale/convert/index.d.ts +15 -1
- package/dist/timescale/convert/index.js +15 -1
- package/dist/timescale/convert/toJ2000Seconds.d.ts +37 -0
- package/dist/timescale/convert/toJ2000Seconds.js +58 -0
- package/dist/timescale/convert/toJulianDate.d.ts +31 -0
- package/dist/timescale/convert/toJulianDate.js +50 -0
- package/dist/timescale/convert/toJulianDateParts.d.ts +32 -0
- package/dist/timescale/convert/toJulianDateParts.js +49 -0
- package/dist/timescale/convert/toModifiedJulianDate.d.ts +36 -0
- package/dist/timescale/convert/toModifiedJulianDate.js +55 -0
- package/dist/timescale/convert/toTAI.d.ts +1 -1
- package/dist/timescale/convert/toTAI.js +2 -2
- package/dist/timescale/convert/toTCG.d.ts +27 -0
- package/dist/timescale/convert/toTCG.js +48 -0
- package/dist/timescale/convert/toTT.d.ts +25 -0
- package/dist/timescale/convert/toTT.js +46 -0
- package/dist/timescale/convert/toTai64n.d.ts +30 -0
- package/dist/timescale/convert/toTai64n.js +46 -0
- package/dist/timescale/format/formatCcsdsAsciiA.d.ts +26 -0
- package/dist/timescale/format/formatCcsdsAsciiA.js +40 -0
- package/dist/timescale/format/formatCcsdsAsciiB.d.ts +27 -0
- package/dist/timescale/format/formatCcsdsAsciiB.js +41 -0
- package/dist/timescale/format/index.d.ts +3 -0
- package/dist/timescale/format/index.js +4 -0
- package/dist/timescale/index.d.ts +21 -1
- package/dist/timescale/index.js +20 -1
- package/dist/timescale/parse/index.d.ts +3 -0
- package/dist/timescale/parse/index.js +4 -0
- package/dist/timescale/parse/parseCcsdsAsciiA.d.ts +24 -0
- package/dist/timescale/parse/parseCcsdsAsciiA.js +43 -0
- package/dist/timescale/parse/parseCcsdsAsciiB.d.ts +26 -0
- package/dist/timescale/parse/parseCcsdsAsciiB.js +46 -0
- package/dist/timescale/validate/isLeapSecond.js +1 -1
- package/dist/transport/calculate/bestAvailable.d.ts +3 -5
- package/dist/transport/calculate/bestAvailable.js +3 -5
- package/dist/transport/calculate/crossingTime.d.ts +6 -11
- package/dist/transport/calculate/crossingTime.js +12 -17
- package/dist/transport/calculate/cutoffAt.d.ts +6 -7
- package/dist/transport/calculate/cutoffAt.js +9 -10
- package/dist/transport/calculate/cutoffSchedule.d.ts +1 -1
- package/dist/transport/calculate/cutoffSchedule.js +4 -4
- package/dist/transport/calculate/dwellTime.d.ts +8 -10
- package/dist/transport/calculate/dwellTime.js +19 -27
- package/dist/transport/calculate/estimateDrift.d.ts +4 -5
- package/dist/transport/calculate/estimateDrift.js +4 -5
- package/dist/transport/calculate/index.js +1 -1
- package/dist/transport/calculate/nextDeparture.d.ts +1 -1
- package/dist/transport/calculate/nextDeparture.js +3 -3
- package/dist/transport/calculate/punctualityRate.d.ts +2 -2
- package/dist/transport/calculate/punctualityRate.js +1 -1
- package/dist/transport/calculate/scheduleDelivery.js +2 -183
- package/dist/transport/calculate/transitTime.d.ts +4 -6
- package/dist/transport/calculate/transitTime.js +6 -22
- package/dist/transport/compare/classifyPunctuality.d.ts +5 -7
- package/dist/transport/compare/classifyPunctuality.js +5 -7
- package/dist/transport/compare/isPastCutoff.d.ts +12 -13
- package/dist/transport/compare/isPastCutoff.js +19 -17
- package/dist/transport/compare/scheduleDeviation.d.ts +6 -14
- package/dist/transport/compare/scheduleDeviation.js +12 -18
- package/dist/transport/compare/timeToCutoff.d.ts +9 -12
- package/dist/transport/compare/timeToCutoff.js +16 -16
- package/dist/transport/convert/etaAtZone.d.ts +3 -11
- package/dist/transport/convert/etaAtZone.js +5 -20
- package/dist/transport/index.js +2 -2
- package/dist/types/duration-relative-to.d.ts +5 -4
- package/dist/types/duty.d.ts +3 -0
- package/dist/types/fhir.d.ts +28 -0
- package/dist/types/fhir.js +0 -0
- package/dist/types/fix.d.ts +41 -0
- package/dist/types/fix.js +0 -0
- package/dist/types/gnss.d.ts +4 -1
- package/dist/types/gtfs.d.ts +17 -0
- package/dist/types/gtfs.js +0 -0
- package/dist/types/hl7.d.ts +110 -0
- package/dist/types/hl7.js +0 -0
- package/dist/types/index.d.ts +9 -2
- package/dist/types/interval.d.ts +3 -5
- package/dist/types/notam.d.ts +31 -0
- package/dist/types/notam.js +0 -0
- package/dist/types/ptp.d.ts +16 -0
- package/dist/types/ptp.js +0 -0
- package/dist/types/time-scale.d.ts +21 -0
- package/dist/types/time-scale.js +0 -0
- package/dist/types/transport-timestamps.d.ts +2 -2
- package/dist/unix/calculate/addUnix.js +3 -3
- package/dist/unix/calculate/diffUnix.js +7 -9
- package/dist/unix/calculate/diffUnixAsDuration.js +2 -2
- package/dist/unix/calculate/endOfUnix.js +2 -2
- package/dist/unix/calculate/isBetweenUnix.js +3 -3
- package/dist/unix/calculate/roundUnix.js +6 -5
- package/dist/unix/calculate/setUnix.js +4 -4
- package/dist/unix/calculate/startOfUnix.js +2 -2
- package/dist/unix/calculate/subtractUnix.js +3 -3
- package/dist/unix/compare/areUnixEqualBy.js +7 -3
- package/dist/unix/convert/convertUnixToZoned.js +2 -2
- package/dist/unix/format/formatCalendarUnix.js +4 -4
- package/dist/unix/format/formatRelativeUnix.js +2 -2
- package/dist/unix/format/formatUnix.js +2 -2
- package/dist/unix/get/getUnixAgo.js +2 -2
- package/dist/unix/get/getUnixIn.js +2 -2
- package/dist/unix/get/getUnixNowUnit.js +2 -2
- package/dist/unix/index.js +1 -1
- package/dist/unix/interval/intervalFromDurationUnix.js +4 -4
- package/dist/unix/parse/index.js +1 -1
- package/dist/unix/parse/parseDayFromUnix.js +2 -2
- package/dist/unix/parse/parseHourFromUnix.js +2 -2
- package/dist/unix/parse/parseMicrosecondFromUnix.js +2 -2
- package/dist/unix/parse/parseMillisecondFromUnix.js +2 -2
- package/dist/unix/parse/parseMinuteFromUnix.js +2 -2
- package/dist/unix/parse/parseMonthFromUnix.js +2 -2
- package/dist/unix/parse/parseNanosecondFromUnix.js +2 -2
- package/dist/unix/parse/parseSecondFromUnix.js +2 -2
- package/dist/unix/parse/parseUnitFromUnix.js +2 -26
- package/dist/unix/parse/parseWeekFromUnix.js +2 -2
- package/dist/unix/parse/parseYearFromUnix.js +2 -2
- package/dist/unix/validate/isValidUnixRange.js +2 -1
- package/dist/utc/calculate/addUtc.js +6 -7
- package/dist/utc/calculate/diffUtc.js +12 -16
- package/dist/utc/calculate/diffUtcAsDuration.js +6 -9
- package/dist/utc/calculate/endOfQuarterForUtc.js +4 -4
- package/dist/utc/calculate/isBetweenUtc.js +10 -15
- package/dist/utc/calculate/maxUtc.js +4 -5
- package/dist/utc/calculate/minUtc.js +4 -5
- package/dist/utc/calculate/roundUtc.js +10 -8
- package/dist/utc/calculate/secondsUntilHttpDate.js +4 -5
- package/dist/utc/calculate/secondsUntilRetryAfter.js +4 -5
- package/dist/utc/calculate/setUtc.js +4 -4
- package/dist/utc/calculate/sortUtc.js +3 -4
- package/dist/utc/calculate/startOfQuarterForUtc.js +4 -4
- package/dist/utc/calculate/subtractUtc.js +6 -7
- package/dist/utc/chop/chopUtc.d.ts +2 -2
- package/dist/utc/chop/chopUtc.js +5 -6
- package/dist/utc/compare/areUtcEqual.js +5 -4
- package/dist/utc/compare/areUtcEqualBy.js +6 -8
- package/dist/utc/compare/isAfterUtc.js +5 -4
- package/dist/utc/compare/isBeforeUtc.js +5 -4
- package/dist/utc/convert/convertUtcToPlainDate.js +3 -4
- package/dist/utc/convert/convertUtcToPlainDateTime.js +3 -4
- package/dist/utc/convert/convertUtcToPlainTime.js +3 -4
- package/dist/utc/convert/convertUtcToUnix.js +4 -4
- package/dist/utc/convert/convertUtcToZoned.js +5 -5
- package/dist/utc/format/formatCalendarUtc.js +16 -12
- package/dist/utc/format/formatHttpDate.js +4 -4
- package/dist/utc/format/formatHttpDateFromNow.js +2 -2
- package/dist/utc/format/formatRelativeUtc.js +14 -10
- package/dist/utc/format/formatUtc.js +5 -7
- package/dist/utc/get/getUtcAgo.js +2 -2
- package/dist/utc/get/getUtcIn.js +2 -2
- package/dist/utc/get/getUtcNowUnit.js +2 -2
- package/dist/utc/index.js +6 -6
- package/dist/utc/interval/index.js +1 -1
- package/dist/utc/interval/intervalAbutsUtc.js +9 -6
- package/dist/utc/interval/intervalContainsUtc.js +19 -16
- package/dist/utc/interval/intervalCountUtc.js +8 -6
- package/dist/utc/interval/intervalDifferenceUtc.js +7 -11
- package/dist/utc/interval/intervalDivideEquallyUtc.js +4 -4
- package/dist/utc/interval/intervalEngulfsUtc.js +9 -6
- package/dist/utc/interval/intervalFromDurationUtc.js +7 -6
- package/dist/utc/interval/intervalIntersectionUtc.js +7 -12
- package/dist/utc/interval/intervalLengthUtc.js +7 -7
- package/dist/utc/interval/intervalOverlappingDaysUtc.js +9 -6
- package/dist/utc/interval/intervalSplitAtUtc.js +13 -7
- package/dist/utc/interval/intervalUnionUtc.js +11 -12
- package/dist/utc/interval/intervalXorAllUtc.js +6 -5
- package/dist/utc/interval/intervalXorUtc.js +9 -6
- package/dist/utc/interval/intervalsOverlapUtc.js +7 -10
- package/dist/utc/interval/mergeIntervalsUtc.js +13 -5
- package/dist/utc/interval/splitIntervalByUnitUtc.js +6 -6
- package/dist/utc/interval/validate/isValidUtcInterval.d.ts +3 -4
- package/dist/utc/interval/validate/isValidUtcInterval.js +5 -15
- package/dist/utc/parse/index.js +1 -1
- package/dist/utc/parse/parseDayOfWeekFromUtc.js +4 -4
- package/dist/utc/parse/parseHttpDate.js +2 -35
- package/dist/utc/parse/parseTimeFromUtc.js +3 -4
- package/dist/utc/parse/parseUnitFromUtc.js +7 -7
- package/dist/utc/parse/parseWeekFromUtc.js +6 -7
- package/dist/utc/validate/index.js +1 -1
- package/dist/utc/validate/isValidHttpDate.js +2 -2
- package/dist/utc/validate/isValidUtc.d.ts +3 -5
- package/dist/utc/validate/isValidUtc.js +2 -14
- package/dist/utc/validate/isValidUtcRange.js +7 -5
- package/dist/utc/validate/isValidUtcTimestamp.js +2 -2
- package/dist/workforce/calculate/dutyDayFor.js +1 -1
- package/dist/zoned/calculate/addZoned.js +8 -10
- package/dist/zoned/calculate/addZonedBusinessDays.js +5 -4
- package/dist/zoned/calculate/clampZoned.js +5 -6
- package/dist/zoned/calculate/closestZonedTo.js +8 -13
- package/dist/zoned/calculate/cycleZoned.js +15 -11
- package/dist/zoned/calculate/diffZoned.js +9 -11
- package/dist/zoned/calculate/diffZonedAsDuration.js +5 -5
- package/dist/zoned/calculate/endOfQuarterForZoned.js +6 -6
- package/dist/zoned/calculate/getHoursInZonedDay.js +4 -4
- package/dist/zoned/calculate/getLocaleZonedDayOfWeek.js +4 -4
- package/dist/zoned/calculate/getLocaleZonedEndOfWeek.js +6 -6
- package/dist/zoned/calculate/getLocaleZonedStartOfWeek.js +6 -6
- package/dist/zoned/calculate/getQuarterForZoned.js +3 -4
- package/dist/zoned/calculate/index.js +1 -1
- package/dist/zoned/calculate/maxZoned.js +3 -7
- package/dist/zoned/calculate/minZoned.js +3 -7
- package/dist/zoned/calculate/roundZoned.js +7 -7
- package/dist/zoned/calculate/setZoned.js +9 -14
- package/dist/zoned/calculate/sortZoned.js +3 -5
- package/dist/zoned/calculate/startOfQuarterForZoned.js +6 -6
- package/dist/zoned/calculate/subtractZoned.js +8 -10
- package/dist/zoned/calculate/subtractZonedBusinessDays.js +5 -4
- package/dist/zoned/chop/chopZonedDate.js +4 -4
- package/dist/zoned/chop/chopZonedDateTime.js +4 -4
- package/dist/zoned/chop/chopZonedMilliseconds.js +4 -4
- package/dist/zoned/chop/chopZonedSeconds.js +4 -4
- package/dist/zoned/chop/chopZonedTime.js +4 -4
- package/dist/zoned/chop/chopZonedTimezone.js +4 -4
- package/dist/zoned/classify/classifyStoredZoned.js +3 -3
- package/dist/zoned/compare/areZonedEqual.js +4 -11
- package/dist/zoned/compare/areZonedEqualBy.js +6 -7
- package/dist/zoned/compare/isAfterZoned.js +4 -11
- package/dist/zoned/compare/isBeforeZoned.js +4 -11
- package/dist/zoned/compare/isBetweenZoned.js +8 -16
- package/dist/zoned/compare/isInDaylightSaving.js +4 -4
- package/dist/zoned/compare/isZonedBusinessDay.js +3 -4
- package/dist/zoned/compare/isZonedFuture.js +4 -4
- package/dist/zoned/compare/isZonedPast.js +4 -4
- package/dist/zoned/compare/isZonedRelativeDay.js +3 -4
- package/dist/zoned/compare/isZonedThisUnit.js +13 -14
- package/dist/zoned/compare/isZonedWeekend.js +3 -4
- package/dist/zoned/convert/convertPlainDateTimeToZoned.js +7 -9
- package/dist/zoned/convert/convertZonedToCalendar.js +4 -4
- package/dist/zoned/convert/convertZonedToPlainDateTime.js +4 -4
- package/dist/zoned/convert/convertZonedToUnix.js +4 -4
- package/dist/zoned/convert/convertZonedToUtc.js +4 -4
- package/dist/zoned/convert/convertZonedToZoned.js +5 -5
- package/dist/zoned/format/formatCalendarZoned.js +12 -11
- package/dist/zoned/format/formatRelativeZoned.js +10 -8
- package/dist/zoned/format/formatRfc2822.js +3 -4
- package/dist/zoned/format/formatRfc3339.js +3 -4
- package/dist/zoned/format/formatTimeZoneName.js +6 -6
- package/dist/zoned/format/formatZonedDateTime.js +3 -4
- package/dist/zoned/format/formatZonedRange.js +103 -20
- package/dist/zoned/format/formatZonedToParts.js +3 -4
- package/dist/zoned/get/getSystemTimeZone.js +2 -7
- package/dist/zoned/get/getTimeZoneOffset.d.ts +4 -6
- package/dist/zoned/get/getTimeZoneOffset.js +4 -6
- package/dist/zoned/get/getZonedAgo.js +4 -4
- package/dist/zoned/get/getZonedIn.js +4 -4
- package/dist/zoned/get/getZonedNow.js +4 -4
- package/dist/zoned/get/getZonedNowUnit.js +2 -2
- package/dist/zoned/get/getZonedYear.js +1 -1
- package/dist/zoned/get/index.js +1 -1
- package/dist/zoned/index.js +13 -13
- package/dist/zoned/interval/index.js +2 -2
- package/dist/zoned/interval/intervalAbutsZoned.js +6 -7
- package/dist/zoned/interval/intervalContainsZoned.js +8 -8
- package/dist/zoned/interval/intervalCountZoned.js +4 -4
- package/dist/zoned/interval/intervalDifferenceZoned.js +6 -7
- package/dist/zoned/interval/intervalDivideEquallyZoned.js +5 -5
- package/dist/zoned/interval/intervalEngulfsZoned.js +6 -7
- package/dist/zoned/interval/intervalFromDurationZoned.js +9 -10
- package/dist/zoned/interval/intervalIntersectionZoned.js +6 -7
- package/dist/zoned/interval/intervalLengthZoned.js +4 -4
- package/dist/zoned/interval/intervalOverlappingDaysZoned.js +9 -7
- package/dist/zoned/interval/intervalSplitAtZoned.js +16 -14
- package/dist/zoned/interval/intervalUnionZoned.js +6 -7
- package/dist/zoned/interval/intervalXorAllZoned.js +14 -8
- package/dist/zoned/interval/intervalXorZoned.js +6 -7
- package/dist/zoned/interval/intervalsOverlapZoned.js +6 -7
- package/dist/zoned/interval/mergeIntervalsZoned.js +13 -8
- package/dist/zoned/interval/splitIntervalByUnitZoned.js +4 -5
- package/dist/zoned/interval/validate/isValidCalendarZonedInterval.js +2 -10
- package/dist/zoned/interval/validate/isValidZonedInterval.d.ts +5 -5
- package/dist/zoned/interval/validate/isValidZonedInterval.js +11 -10
- package/dist/zoned/map/mapZonedDatesInRange.js +4 -11
- package/dist/zoned/map/mapZonedHoursInDay.js +4 -4
- package/dist/zoned/parse/getZonedOffset.js +4 -4
- package/dist/zoned/parse/getZonedOffsetAs.js +4 -4
- package/dist/zoned/parse/index.js +2 -2
- package/dist/zoned/parse/parseDateFromZoned.js +4 -4
- package/dist/zoned/parse/parseDateTimeFromZoned.js +5 -5
- package/dist/zoned/parse/parseDayFromZoned.js +4 -4
- package/dist/zoned/parse/parseDayOfWeekFromZoned.js +4 -4
- package/dist/zoned/parse/parseHourFromZoned.js +4 -4
- package/dist/zoned/parse/parseMicrosecondFromZoned.js +4 -4
- package/dist/zoned/parse/parseMillisecondFromZoned.js +4 -4
- package/dist/zoned/parse/parseMinuteFromZoned.js +4 -4
- package/dist/zoned/parse/parseMonthFromZoned.js +4 -4
- package/dist/zoned/parse/parseNanosecondFromZoned.js +4 -4
- package/dist/zoned/parse/parseRfc2822.js +2 -19
- package/dist/zoned/parse/parseRfc3339.js +2 -13
- package/dist/zoned/parse/parseSecondFromZoned.js +4 -4
- package/dist/zoned/parse/parseTimeFromZoned.js +4 -4
- package/dist/zoned/parse/parseTimeZoneFromZoned.js +4 -4
- package/dist/zoned/parse/parseUnitFromZoned.js +5 -6
- package/dist/zoned/parse/parseWeekFromZoned.js +5 -6
- package/dist/zoned/parse/parseYearFromZoned.js +3 -4
- package/dist/zoned/validate/hasDaylightSaving.d.ts +3 -4
- package/dist/zoned/validate/hasDaylightSaving.js +1 -1
- package/dist/zoned/validate/index.js +2 -2
- package/dist/zoned/validate/isValidCalendarZonedDateTime.d.ts +6 -8
- package/dist/zoned/validate/isValidCalendarZonedDateTime.js +2 -7
- package/dist/zoned/validate/isValidRfc2822DateTime.js +2 -2
- package/dist/zoned/validate/isValidRfc3339DateTime.js +2 -2
- package/dist/zoned/validate/isValidZonedDateTime.d.ts +6 -7
- package/dist/zoned/validate/isValidZonedDateTime.js +2 -11
- package/dist/zoned/validate/isValidZonedRange.d.ts +3 -3
- package/dist/zoned/validate/isValidZonedRange.js +8 -7
- package/package.json +155 -1
- package/skills/gmt-arithmetic/SKILL.md +5 -4
- package/skills/gmt-aviation/SKILL.md +124 -0
- package/skills/gmt-basics/SKILL.md +8 -7
- package/skills/gmt-finance/SKILL.md +121 -0
- package/skills/gmt-gnss/SKILL.md +6 -5
- package/skills/gmt-healthcare/SKILL.md +145 -0
- package/skills/gmt-integration/SKILL.md +63 -14
- package/skills/gmt-intermodal/SKILL.md +1 -1
- package/skills/gmt-iot/SKILL.md +95 -0
- package/skills/gmt-rail/SKILL.md +101 -0
- package/skills/gmt-timezone/SKILL.md +17 -18
- package/skills/gmt-transport/SKILL.md +6 -4
- package/skills/gmt-workforce/SKILL.md +1 -1
- package/dist/internal/temporalCompat/isoCalendarFrom.d.ts +0 -38
- package/dist/internal/temporalCompat/isoCalendarFrom.js +0 -59
- package/dist/internal/toInstantFromUtc.d.ts +0 -12
- package/dist/internal/toInstantFromUtc.js +0 -30
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gmt-finance
|
|
3
|
+
description: >
|
|
4
|
+
Financial messaging dates and timestamps in @northguild/gmt/finance — the FIX
|
|
5
|
+
UTCTimestamp (YYYYMMDD-HH:MM:SS[.sss*]) read, written and checked:
|
|
6
|
+
parseFixUtcTimestamp (precision from the digit count, picoseconds apart,
|
|
7
|
+
second 60 only on a real leap second), formatFixUtcTimestamp (cut, never
|
|
8
|
+
rounded, at a counterparty's precision) and isValidFixUtcTimestamp; and the
|
|
9
|
+
SWIFT MT value date (YYMMDD): parseSwiftDate, formatSwiftDate and
|
|
10
|
+
isValidSwiftDate, in the century SWIFT's own rule gives. Reads the docs site
|
|
11
|
+
(llms.txt) and the installed package's JSDoc; a routing pointer, not an API
|
|
12
|
+
dump.
|
|
13
|
+
sources:
|
|
14
|
+
- 'northguild/gmt:apps/dox/src/content/docs/guides/industries/finance-message-timestamps.mdx'
|
|
15
|
+
- 'northguild/gmt:packages/gmt/src/finance/format/index.ts'
|
|
16
|
+
- 'northguild/gmt:packages/gmt/src/finance/parse/index.ts'
|
|
17
|
+
- 'northguild/gmt:packages/gmt/src/finance/validate/index.ts'
|
|
18
|
+
- 'northguild/gmt:packages/gmt/src/types/fix.ts'
|
|
19
|
+
metadata:
|
|
20
|
+
type: core
|
|
21
|
+
library: '@northguild/gmt'
|
|
22
|
+
library_version: '1.22.0'
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# GMT Finance
|
|
26
|
+
|
|
27
|
+
Use this skill when the task is reading or writing a timestamp from a FIX
|
|
28
|
+
message: `SendingTime`, `TransactTime` and every other field of the
|
|
29
|
+
`UTCTimestamp` data type, and the six-digit value date of a SWIFT MT message
|
|
30
|
+
(`30` and `32A`). TAI and the leap-second table are in the
|
|
31
|
+
`gmt-integration` skill.
|
|
32
|
+
|
|
33
|
+
## When to load
|
|
34
|
+
|
|
35
|
+
- The user has a FIX `UTCTimestamp` such as `20240615-14:30:00.123456` to read,
|
|
36
|
+
or an instant to write in that form at a counterparty's precision.
|
|
37
|
+
- The user asks whether a FIX timestamp is valid, or what precision it states.
|
|
38
|
+
- The user has a SWIFT MT value date such as `240615` (`YYMMDD`) to read, or an
|
|
39
|
+
ISO date to write in that form, or asks which century a `YY` means.
|
|
40
|
+
|
|
41
|
+
## Core rules
|
|
42
|
+
|
|
43
|
+
1. **A FIX `UTCTimestamp` is not ISO 8601.** It is `YYYYMMDD-HH:MM:SS`, with an
|
|
44
|
+
optional `.` and 3, 6, 9 or 12 fraction digits, in UTC with no `Z`. No
|
|
45
|
+
`Temporal.*.from` reads it, and a pattern cannot say whether a day exists or
|
|
46
|
+
a `60` is real. Use the three functions, not a regular expression.
|
|
47
|
+
2. **The digit count is the precision, and it is never widened.**
|
|
48
|
+
`parseFixUtcTimestamp` returns `{ instant, precision, leapSecond, picoseconds }`
|
|
49
|
+
or `null`. A millisecond stamp stays `"millisecond"`; reading it as
|
|
50
|
+
nanoseconds claims a precision nobody measured.
|
|
51
|
+
```typescript
|
|
52
|
+
parseFixUtcTimestamp("20240615-14:30:00.123456");
|
|
53
|
+
// { instant: "2024-06-15T14:30:00.123456Z", precision: "microsecond", leapSecond: false, picoseconds: 0 }
|
|
54
|
+
parseFixUtcTimestamp("20240615-14:30:00.123456789012");
|
|
55
|
+
// { instant: "2024-06-15T14:30:00.123456789Z", precision: "picosecond", leapSecond: false, picoseconds: 12 }
|
|
56
|
+
parseFixUtcTimestamp("20240615-14:30:00.12"); // null: two digits is not a FIX width
|
|
57
|
+
```
|
|
58
|
+
- `instant` keeps the digits sent up to the ninth, so `.100` stays `.100Z`.
|
|
59
|
+
- An instant holds nanoseconds. Digits 10 to 12 of a picosecond stamp come
|
|
60
|
+
back in `picoseconds` (0 to 999), so keep them if you need them.
|
|
61
|
+
3. **`60` is real on 27 days only.** A seconds field of `60` is accepted only for
|
|
62
|
+
one of the 27 inserted leap seconds, and `instant` is then `…T23:59:60Z`.
|
|
63
|
+
```typescript
|
|
64
|
+
parseFixUtcTimestamp("20161231-23:59:60"); // { instant: "2016-12-31T23:59:60Z", precision: "second", leapSecond: true, picoseconds: 0 }
|
|
65
|
+
parseFixUtcTimestamp("20171231-23:59:60"); // null
|
|
66
|
+
```
|
|
67
|
+
`finance/`, `timescale/` and `gnss/` read and write that string; every other
|
|
68
|
+
GMT function rejects `:60`, so do not pass the instant on.
|
|
69
|
+
4. **Write at the counterparty's precision.** `formatFixUtcTimestamp(instant, precision)`
|
|
70
|
+
converts to UTC, cuts to the precision and never rounds, so a stamp cannot
|
|
71
|
+
move into the next second or day. `"picosecond"` pads `000`. It takes an
|
|
72
|
+
instant with `Z` or an offset; a local date-time returns `""`, because it
|
|
73
|
+
names no UTC second until `resolveLocal` gives one.
|
|
74
|
+
```typescript
|
|
75
|
+
formatFixUtcTimestamp("2024-06-15T16:30:00.123456789+02:00", "millisecond"); // "20240615-14:30:00.123"
|
|
76
|
+
formatFixUtcTimestamp("2024-06-15T16:30:00.123456789+02:00", "picosecond"); // "20240615-14:30:00.123456789000"
|
|
77
|
+
formatFixUtcTimestamp("2024-06-15T14:30:00", "second"); // ""
|
|
78
|
+
```
|
|
79
|
+
5. **Validate before you trust.** `isValidFixUtcTimestamp(value)` is `true`
|
|
80
|
+
exactly when the parser returns a value, and it narrows `unknown` to `string`.
|
|
81
|
+
Other widths are a bilateral agreement the value does not carry, so the
|
|
82
|
+
parser returns `null` for them.
|
|
83
|
+
6. **A SWIFT value date is `YYMMDD`, and SWIFT chooses the century.** For
|
|
84
|
+
field 32A of MT 910, and fields 30 and 32A of category 1 and 2 messages
|
|
85
|
+
other than n92, n95 and n96, a `YY` from 01 to 60 is 20`YY`, 2001 to 2060;
|
|
86
|
+
any other `YY`, `00` and `61` to `99` included, is refused (error T50).
|
|
87
|
+
There are no options and no window to pass. The day is checked in the year
|
|
88
|
+
the rule gives, so `040229` is real and `050229` is not.
|
|
89
|
+
```typescript
|
|
90
|
+
parseSwiftDate("240615"); // "2024-06-15"
|
|
91
|
+
parseSwiftDate("990615"); // "": YY 99 is not from 01 to 60
|
|
92
|
+
parseSwiftDate("040229"); // "2004-02-29"
|
|
93
|
+
parseSwiftDate("750101"); // "": YY 75 is not from 01 to 60
|
|
94
|
+
formatSwiftDate("2024-06-15"); // "240615"
|
|
95
|
+
formatSwiftDate("1924-06-15"); // "": its digits would read back as 2024
|
|
96
|
+
isValidSwiftDate("750101"); // false
|
|
97
|
+
```
|
|
98
|
+
- Pass the bare six digits. A tag, currency, amount or space returns `""`;
|
|
99
|
+
splitting a field into subfields is yours.
|
|
100
|
+
- `formatSwiftDate` takes an ISO calendar date. A date-time returns `""`:
|
|
101
|
+
take the date first, in the zone you mean.
|
|
102
|
+
- Other six-digit dates, such as field 31D of an MT 700, are not covered by
|
|
103
|
+
SWIFT's value-date rule: read them with `parseDateWithPattern`.
|
|
104
|
+
7. **Read the docs site.** This skill is a routing pointer. The map of the
|
|
105
|
+
docs is `https://northguild.dev/gmt/llms.txt`, and each page has a `.md`
|
|
106
|
+
twin that holds its text. The JSDoc ships in the installed package:
|
|
107
|
+
`node_modules/@northguild/gmt/dist/**/*.d.ts`.
|
|
108
|
+
|
|
109
|
+
## Key functions
|
|
110
|
+
|
|
111
|
+
- **FIX `UTCTimestamp`** (`@northguild/gmt/finance`): `parseFixUtcTimestamp`,
|
|
112
|
+
`formatFixUtcTimestamp`, `isValidFixUtcTimestamp`, types `FixPrecision`,
|
|
113
|
+
`FixUtcTimestamp`
|
|
114
|
+
- **SWIFT MT value date** (`@northguild/gmt/finance`): `parseSwiftDate`,
|
|
115
|
+
`formatSwiftDate`, `isValidSwiftDate`
|
|
116
|
+
|
|
117
|
+
## References
|
|
118
|
+
|
|
119
|
+
- [finance reference](https://northguild.dev/gmt/reference/finance/)
|
|
120
|
+
- [Docs map for agents (llms.txt)](https://northguild.dev/gmt/llms.txt)
|
|
121
|
+
- [GMT Integration skill](../gmt-integration/SKILL.md)
|
package/skills/gmt-gnss/SKILL.md
CHANGED
|
@@ -15,7 +15,7 @@ sources:
|
|
|
15
15
|
metadata:
|
|
16
16
|
type: core
|
|
17
17
|
library: '@northguild/gmt'
|
|
18
|
-
library_version: '1.
|
|
18
|
+
library_version: '1.22.0'
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
# GMT GNSS
|
|
@@ -65,10 +65,11 @@ file week. TAI and the leap-second table are in the `gmt-integration` skill.
|
|
|
65
65
|
rinexWeekToUtc("IRN", 2295, 86418); // "2024-01-01T00:00:00Z"
|
|
66
66
|
gnssWeekToUtc("IRN-L1NV", 2295, 86418, 0); // "2043-08-17T00:00:00Z" (not the same week)
|
|
67
67
|
```
|
|
68
|
-
3. **Second 60 is accepted only on a listed insertion day.**
|
|
69
|
-
`timescale/` accept `:60
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
3. **Second 60 is accepted only on a listed insertion day.** Only the
|
|
69
|
+
`timescale/`, `gnss/` and `finance/` functions accept `:60`, and only on a
|
|
70
|
+
listed insertion day (for `finance/`, see the `gmt-finance` skill). They may
|
|
71
|
+
return `…T23:59:60Z`. Every other GMT function rejects `:60`, so do not pass
|
|
72
|
+
that result on.
|
|
72
73
|
4. **Convert at the boundary and store the era rule.** Convert a GNSS label to
|
|
73
74
|
a UTC instant on the way in (`gnssToUtc`, `gnssWeekToUtc`, `rinexWeekToUtc`),
|
|
74
75
|
and back on the way out. Store the era rule you used with any week you
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gmt-healthcare
|
|
3
|
+
description: >
|
|
4
|
+
HL7 v2 and FHIR R4 date-times in @northguild/gmt/healthcare — parseHL7 reads a
|
|
5
|
+
DTM, or a TS with its degree of precision, as an instant, a local time with no
|
|
6
|
+
offset, a partial value or the null value; formatHL7 writes an ISO 8601 value
|
|
7
|
+
as a DTM; isValidHL7 checks one. An HL7 time with no offset is the sender's
|
|
8
|
+
local time, never UTC. parseFHIR, isValidFHIR and formatFHIR read, check and
|
|
9
|
+
write a FHIR date, dateTime or instant, keeping the precision; a FHIR time
|
|
10
|
+
with no zone is invalid. Reads the docs site (llms.txt) and the installed
|
|
11
|
+
package's JSDoc; a routing pointer.
|
|
12
|
+
sources:
|
|
13
|
+
- 'northguild/gmt:apps/dox/src/content/docs/guides/industries/healthcare-clinical-timestamps.mdx'
|
|
14
|
+
- 'northguild/gmt:packages/gmt/src/healthcare/index.ts'
|
|
15
|
+
- 'northguild/gmt:packages/gmt/src/types/hl7.ts'
|
|
16
|
+
- 'northguild/gmt:packages/gmt/src/types/fhir.ts'
|
|
17
|
+
metadata:
|
|
18
|
+
type: core
|
|
19
|
+
library: '@northguild/gmt'
|
|
20
|
+
library_version: '1.22.0'
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# GMT Healthcare
|
|
24
|
+
|
|
25
|
+
Use this skill when the task is reading or writing the date-time of an HL7 v2
|
|
26
|
+
message (an `MSH-7`, an `OBX-14`, a `PID-7`) or of a FHIR R4 resource (a
|
|
27
|
+
`birthDate`, an `Observation.effectiveDateTime`, an `instant` such as
|
|
28
|
+
`Meta.lastUpdated`). Resolving a local time once the
|
|
29
|
+
sender's zone is known is in the `gmt-timezone` skill.
|
|
30
|
+
|
|
31
|
+
## When to load
|
|
32
|
+
|
|
33
|
+
- The user reads an HL7 v2 `DTM` or `TS` field, or a value such as
|
|
34
|
+
`20240615103000-0500` or `199904011200^L`.
|
|
35
|
+
- The user asks why HL7 times are hours off, or whether an HL7 time is UTC.
|
|
36
|
+
- The user writes an ISO 8601 value into an HL7 field.
|
|
37
|
+
- The user checks that an HL7 time is well formed before storing it.
|
|
38
|
+
- The user reads, checks or writes a FHIR `date`, `dateTime` or `instant`, such
|
|
39
|
+
as `2024-06` or `2015-02-07T13:28:17-05:00`.
|
|
40
|
+
- The user asks whether a FHIR value with no zone, or a second of `60`, is valid.
|
|
41
|
+
|
|
42
|
+
## Core rules
|
|
43
|
+
|
|
44
|
+
1. **No offset means the sender's local time, not UTC.** HL7 2.A.22: "if the
|
|
45
|
+
time zone is not included, the time zone defaults to that of the local time
|
|
46
|
+
zone of the sender". `parseHL7` returns `kind: "local"` for it, with no
|
|
47
|
+
`instant`. Take the instant by supplying the sender's zone to
|
|
48
|
+
`resolveLocal(result.local, zone)`; reading the digits as UTC moves every
|
|
49
|
+
event by the sender's offset.
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
parseHL7("20240615103000-0500"); // { kind: "instant", instant: "2024-06-15T15:30:00Z", offset: "-05:00", local: "2024-06-15T10:30:00", precision: "second" }
|
|
53
|
+
parseHL7("20240615103000"); // { kind: "local", local: "2024-06-15T10:30:00", precision: "second" }
|
|
54
|
+
resolveLocal("2024-06-15T10:30:00", "Europe/Helsinki"); // "2024-06-15T07:30:00Z"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
2. **Four kinds, and the digits sent are the precision.** `"instant"` (an offset
|
|
58
|
+
and a minute or finer), `"local"` (no offset, a minute or finer), `"partial"`
|
|
59
|
+
(a year, month, day or hour: a span, with no instant even when it carries an
|
|
60
|
+
offset) and `"null"` (the HL7 null value `""`, two double quotes, which is not
|
|
61
|
+
the empty string). `precision` says which digits were sent.
|
|
62
|
+
3. **A `TS` degree of precision only lowers the precision.** `199904011200^L` is
|
|
63
|
+
April 1999, not 12:00. A degree finer than the digits sent, or not one of
|
|
64
|
+
`Y L D H M S`, returns `null`. `^` separates the components and `&` the
|
|
65
|
+
subcomponents (ch. 2 §2.5.4); a feed whose MSH-2 names others re-joins the
|
|
66
|
+
field first. What is present but not expected is ignored (§2.6.2), so
|
|
67
|
+
`20240615^D^X` reads as `20240615^D` and `2024&X` as `2024`. An empty
|
|
68
|
+
component is not present: `20240615^D^` is `20240615^D`, `'""^'` the null
|
|
69
|
+
value, and `^D` and `&X` return `null`.
|
|
70
|
+
4. **`formatHL7` writes a `DTM`, never a `TS`, and never rounds.** It reads the
|
|
71
|
+
precision from the form of the input and `{ precision }` only lowers it; a
|
|
72
|
+
fraction is cut to four digits. An instant with `Z` writes `+0000`. A local
|
|
73
|
+
value writes no offset.
|
|
74
|
+
5. **Sentinels, never throws.** `parseHL7` returns `null`, `formatHL7` returns
|
|
75
|
+
`""`, `isValidHL7` returns `false`, for any input of any type. `isValidHL7` is
|
|
76
|
+
`parseHL7(value) !== null`; `'""'` is valid.
|
|
77
|
+
6. **Read the docs site.** This skill is a routing pointer. The map of the docs
|
|
78
|
+
is `https://northguild.dev/gmt/llms.txt`, and each page has a `.md` twin that
|
|
79
|
+
holds its text. The JSDoc ships in the installed package:
|
|
80
|
+
`node_modules/@northguild/gmt/dist/**/*.d.ts`.
|
|
81
|
+
|
|
82
|
+
## FHIR R4: `date`, `dateTime` and `instant`
|
|
83
|
+
|
|
84
|
+
The rules above are HL7 v2. FHIR R4 (Datatypes §2.24.0.1) is a different
|
|
85
|
+
grammar, and it differs from HL7 on the point that matters most.
|
|
86
|
+
|
|
87
|
+
1. **Three functions, one `type` parameter.** `parseFHIR(value)` reads a value of
|
|
88
|
+
any of the three types. `isValidFHIR(value, type)` and
|
|
89
|
+
`formatFHIR(value, type, { precision })` take `type` as `"date"`,
|
|
90
|
+
`"dateTime"` or `"instant"`. `date` takes a day or coarser, `instant` a second
|
|
91
|
+
or finer, and `dateTime` takes all five precisions.
|
|
92
|
+
2. **Precision is kept, never padded.** `parseFHIR("2024-06")` is
|
|
93
|
+
`{ value: "2024-06", precision: "month", offset: "" }`. The five precisions
|
|
94
|
+
are `year`, `month`, `day`, `second` and `fraction`; FHIR has no hour or
|
|
95
|
+
minute. Comparing two partial values is FHIRPath's job, not GMT's.
|
|
96
|
+
3. **A time with no zone is invalid.** Unlike HL7, FHIR never leaves a time to the
|
|
97
|
+
sender's local zone: `parseFHIR("2024-06-15T10:30:00")` is `null`, and
|
|
98
|
+
`isValidFHIR(…, "dateTime")` is `false`. There is nothing to resolve, so
|
|
99
|
+
`resolveLocal` is never needed.
|
|
100
|
+
4. **A second of `60` is valid only on an inserted leap second.**
|
|
101
|
+
`2016-12-31T23:59:60Z` is valid and `2017-12-31T23:59:60Z` is not, at any
|
|
102
|
+
offset spelling. `formatFHIR` never writes a second of `60`; it returns `""`.
|
|
103
|
+
5. **`Z`, `+00:00` and `-00:00` read as one offset.** `parseFHIR` gives
|
|
104
|
+
`offset: "+00:00"` for all three and keeps `value` as sent, so compare
|
|
105
|
+
`offset`, not the strings.
|
|
106
|
+
6. **The patterns prove shape only.** `fhirDate`, `fhirDateTime` and `fhirInstant`
|
|
107
|
+
(`@northguild/gmt/regex`) are the R4 regexes. `fhirDateTime` accepts
|
|
108
|
+
`2024-02-30`, `fhirDate` accepts `2023-02-29`, and `fhirInstant` accepts
|
|
109
|
+
`2017-12-31T23:59:60Z` and a ten-digit fraction; `isValidFHIR` refuses all
|
|
110
|
+
of them. A value `isValidFHIR` accepts always matches its pattern.
|
|
111
|
+
7. **`formatFHIR` reads the wall clock as written.** It cuts and never rounds.
|
|
112
|
+
Under `date` it gives the date at the input's own offset
|
|
113
|
+
(`2024-06-15T23:30:00-05:00` is `2024-06-15`), and it keeps the designator as
|
|
114
|
+
written. It never zero-fills: an HL7 time at minute precision gives `""`
|
|
115
|
+
under `dateTime` and `instant` until the caller cuts it to a day or adds
|
|
116
|
+
`:00` knowingly. A `Z[zone]` value gives that zone's local date under `date`
|
|
117
|
+
(`2024-06-15T23:30:00Z[Europe/Berlin]` is `2024-06-16`), and an offset that is
|
|
118
|
+
not a whole number of minutes (`+02:00:30`) returns `""`.
|
|
119
|
+
8. **Sentinels, never throws.** `parseFHIR` returns `null`, `formatFHIR` returns
|
|
120
|
+
`""`, `isValidFHIR` returns `false`, for any input of any type.
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
parseFHIR("2024-06"); // { value: "2024-06", precision: "month", offset: "" }
|
|
124
|
+
parseFHIR("2015-02-07T13:28:17-05:00"); // { value: "2015-02-07T13:28:17-05:00", precision: "second", offset: "-05:00" }
|
|
125
|
+
isValidFHIR("2024-06-15T10:30:00", "dateTime"); // false (a time needs a zone)
|
|
126
|
+
formatFHIR("2024-06-15T23:30:00-05:00", "date"); // "2024-06-15"
|
|
127
|
+
formatFHIR("2024-06-15T10:30:00Z", "dateTime", { precision: "month" }); // "2024-06"
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Key functions
|
|
131
|
+
|
|
132
|
+
- **Read and write**: `parseHL7`, `formatHL7`, `parseFHIR`, `formatFHIR`
|
|
133
|
+
- **Check**: `isValidHL7`, `isValidFHIR`
|
|
134
|
+
- **Types**: `Hl7DateTime`, `Hl7Precision`, `Hl7PartialPrecision`,
|
|
135
|
+
`Hl7MomentPrecision`, `Hl7FormatOptions`, `FhirDateTime`, `FhirDateType`,
|
|
136
|
+
`FhirPrecision`, `FhirFormatOptions`
|
|
137
|
+
- **Patterns**: `fhirDate`, `fhirDateTime`, `fhirInstant`
|
|
138
|
+
|
|
139
|
+
## References
|
|
140
|
+
|
|
141
|
+
- [healthcare reference](https://northguild.dev/gmt/reference/healthcare/)
|
|
142
|
+
- [Healthcare: Clinical Timestamps guide](https://northguild.dev/gmt/guides/industries/healthcare-clinical-timestamps/)
|
|
143
|
+
- [HL7 Timestamp Reader](https://northguild.dev/gmt/tools/hl7-timestamp-reader/)
|
|
144
|
+
- [Docs map for agents (llms.txt)](https://northguild.dev/gmt/llms.txt)
|
|
145
|
+
- [GMT Timezone skill](../gmt-timezone/SKILL.md)
|
|
@@ -7,11 +7,14 @@ description: >
|
|
|
7
7
|
timestamps inside UUID, ULID, ObjectId, Snowflake and KSUID identifiers,
|
|
8
8
|
Parquet INT96, Arrow and protobuf timestamps, TAI and the closed IERS
|
|
9
9
|
leap-second table (taiMinusUtc, leapSecondsBetween, nextLeapSecond,
|
|
10
|
-
isLeapSecond, toTAI, fromTAI
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
isLeapSecond, toTAI, fromTAI, toTai64n, fromTai64n, toTT, fromTT, toTCG,
|
|
11
|
+
fromTCG, tcgMinusTt), Julian Date, Modified Julian Date and J2000 seconds
|
|
12
|
+
(toJulianDate, toModifiedJulianDate, toJ2000Seconds and their from and Parts
|
|
13
|
+
forms), CCSDS ASCII time codes A and B (parseCcsdsAscii*, formatCcsdsAscii*),
|
|
14
|
+
and lint package selection (ESLint, Biome, Oxlint). GNSS time is in gmt-gnss.
|
|
15
|
+
Reads the docs site (llms.txt and each page's .md twin) and the installed
|
|
16
|
+
package's JSDoc for API details, and the lint-package READMEs for lint setup;
|
|
17
|
+
this skill is a routing pointer, not an API dump.
|
|
15
18
|
sources:
|
|
16
19
|
- "northguild/gmt:apps/dox/src/content/docs/install.mdx"
|
|
17
20
|
- "northguild/gmt:apps/dox/src/content/docs/guides/integration/app-integratio\
|
|
@@ -33,7 +36,7 @@ sources:
|
|
|
33
36
|
metadata:
|
|
34
37
|
type: composition
|
|
35
38
|
library: "@northguild/gmt"
|
|
36
|
-
library_version: "1.
|
|
39
|
+
library_version: "1.22.0"
|
|
37
40
|
---
|
|
38
41
|
|
|
39
42
|
# GMT Integration
|
|
@@ -105,10 +108,9 @@ which lint package to install for Date-ban enforcement.
|
|
|
105
108
|
unsynchronized" marker. Check for `0n` yourself before trusting it as 1900.
|
|
106
109
|
- .NET ticks name an instant only when `DateTimeKind` is `Utc`. `Local` and
|
|
107
110
|
`Unspecified` ticks count wall-clock time.
|
|
108
|
-
- `toNanoseconds` and `isValidInstant`
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
names the instant the zone gives.
|
|
111
|
+
- `toNanoseconds` and `isValidInstant` take exactly `Z` or a written offset
|
|
112
|
+
and nothing after it: a bracketed zone, calendar or other annotation
|
|
113
|
+
(`2024-06-15T10:00:00Z[Europe/London]`) makes the string invalid.
|
|
112
114
|
6. **Leap seconds come from the built-in table, never a literal.** `timescale/`
|
|
113
115
|
holds the IERS leap-second table as a closed record: 27 insertions, the last
|
|
114
116
|
on 2016-12-31, and TAI − UTC stays 37 s for every later date, because UTC
|
|
@@ -120,11 +122,56 @@ which lint package to install for Date-ban enforcement.
|
|
|
120
122
|
isLeapSecond("2024-06-15T12:34:60Z"); // false (hasSecond60 is the shape test)
|
|
121
123
|
toTAI("2026-01-01T00:00:00Z"); // "2026-01-01T00:00:37 TAI"
|
|
122
124
|
fromTAI("2017-01-01T00:00:36 TAI"); // "2016-12-31T23:59:60Z"
|
|
125
|
+
toTai64n("1992-06-02T08:06:43Z"); // "@400000002a2b2c2d00000000"
|
|
126
|
+
fromTai64n("@400000002a2b2c2d00000000"); // "1992-06-02T08:06:43Z"
|
|
127
|
+
toTT("2026-01-01T00:00:00Z"); // "2026-01-01T00:01:09.184 TT"
|
|
128
|
+
toTCG("2026-01-01T00:00:00Z"); // "2026-01-01T00:01:10.261661917 TCG"
|
|
129
|
+
fromTCG("2026-01-01T00:01:10.261661917 TCG"); // "2026-01-01T00:00:00Z"
|
|
130
|
+
tcgMinusTt("2026-01-01T00:00:00Z"); // 1.077661917
|
|
131
|
+
toJulianDateParts("2026-01-01T00:00:00.123456789Z"); // { jd1: 2461041, jd2: 0.5000014288980208 }
|
|
132
|
+
toJulianDate("2026-01-01T12:00:00Z"); // 2461042
|
|
133
|
+
toModifiedJulianDate("2000-01-01T00:00:00Z"); // 51544
|
|
134
|
+
toJ2000Seconds("2000-01-01T11:58:55.816Z"); // 0
|
|
135
|
+
fromJ2000Seconds(0); // "2000-01-01T11:58:55.816Z"
|
|
136
|
+
parseCcsdsAsciiA("1988-01-18T17:20:43.123456Z"); // "1988-01-18T17:20:43.123456Z"
|
|
137
|
+
parseCcsdsAsciiB("2024-366T12:00:00Z"); // "2024-12-31T12:00:00Z"
|
|
138
|
+
formatCcsdsAsciiA("2024-06-15T12:30:00.123456789+02:00", 6); // "2024-06-15T10:30:00.123456Z"
|
|
139
|
+
formatCcsdsAsciiB("2016-12-31T23:59:60Z"); // "2016-366T23:59:60Z"
|
|
123
140
|
```
|
|
141
|
+
- `toTai64n` and `fromTai64n` read and write the TAI64N labels of qmail,
|
|
142
|
+
daemontools and s6 logs. A label counts TAI seconds, so reading one as Unix
|
|
143
|
+
seconds is 37 s out today. `fromTai64n` takes 16, 24 or 32 hex digits, with
|
|
144
|
+
or without `@`, and drops TAI64NA attoseconds. Labels daemontools writes on
|
|
145
|
+
a UTC clock read 27 s early: `fromTai64n` does not correct that.
|
|
146
|
+
- `toTT` / `fromTT` and `toTCG` / `fromTCG` convert to and from Terrestrial
|
|
147
|
+
Time (TAI + 32.184 s) and Geocentric Coordinate Time, which runs ahead of
|
|
148
|
+
TT at a fixed rate. `tcgMinusTt` returns the gap in seconds, or `null`.
|
|
149
|
+
All floor to the nanosecond and return `""` before 1972.
|
|
150
|
+
- `toJulianDateParts` / `fromJulianDateParts` carry a Julian Date as two
|
|
151
|
+
doubles, `jd1` a whole number of days and `jd2` the fraction, and keep
|
|
152
|
+
the nanosecond. `toJulianDate` and `toModifiedJulianDate` return one
|
|
153
|
+
double, which is rounded: about 20 µs at today's JD, and the MJD keeps
|
|
154
|
+
more digits than the JD. Each `to*` has a `from*` that returns the UTC
|
|
155
|
+
instant. They take an optional scale (`"UTC"`, `"TAI"`, `"TT"`,
|
|
156
|
+
`"TCG"`). The default is `"UTC"`, except `toJ2000Seconds` and
|
|
157
|
+
`fromJ2000Seconds`, which default to `"TT"`, the scale J2000.0 is defined
|
|
158
|
+
in. A JD day starts at noon and an MJD day at midnight. On UTC every day
|
|
159
|
+
counts as one day, a leap-second day included. Any other scale, such as
|
|
160
|
+
`"TDB"`, returns the sentinel.
|
|
161
|
+
- `parseCcsdsAsciiA` / `formatCcsdsAsciiA` and `parseCcsdsAsciiB` /
|
|
162
|
+
`formatCcsdsAsciiB` read and write the CCSDS ASCII time codes (CCSDS
|
|
163
|
+
301.0-B-4). Code A names the day by calendar date
|
|
164
|
+
(`1988-01-18T17:20:43.123456Z`), Code B by day of year
|
|
165
|
+
(`1988-018T17:20:43.123456Z`). The code is UTC: `Z` is optional on input
|
|
166
|
+
and always written. A parser needs the seconds, keeps the fraction digits
|
|
167
|
+
as sent (up to nine, never rounded) and returns the instant as ISO 8601.
|
|
168
|
+
A formatter takes `fractionalSecondDigits` (`"auto"`, or 0 to 9; extra
|
|
169
|
+
digits are cut, never rounded). Second 60 is read and written only at an
|
|
170
|
+
inserted leap second. All four return `""` on input that does not fit.
|
|
124
171
|
- Before 1972-01-01 TAI − UTC was fractional, so every function returns its
|
|
125
172
|
sentinel there.
|
|
126
|
-
- `timescale/` and `
|
|
127
|
-
day (for `gnss/`, see the `gmt-gnss` skill), and may return `…T23:59:60Z`. Every other GMT function rejects `:60`,
|
|
173
|
+
- `timescale/`, `gnss/` and `finance/` accept a second 60 only on a listed insertion
|
|
174
|
+
day (for `gnss/`, see the `gmt-gnss` skill; for `finance/`, the `gmt-finance` skill), and may return `…T23:59:60Z`. Every other GMT function rejects `:60`,
|
|
128
175
|
so do not pass that result on.
|
|
129
176
|
- A smeared clock never reads `23:59:60` and is up to a second off UTC
|
|
130
177
|
around an insertion. GMT cannot detect smearing.
|
|
@@ -180,13 +227,15 @@ the pattern.
|
|
|
180
227
|
`precision/identifiers`, and bridge Parquet `INT96`, Arrow and protobuf values
|
|
181
228
|
with the `precision/convert/` bridges.
|
|
182
229
|
- **Atomic time at the boundary**: convert a TAI label to a UTC instant on the
|
|
183
|
-
way in (`fromTAI`), and back on the way out. GNSS time scales and weeks are in
|
|
230
|
+
way in (`fromTAI`, or `fromTai64n` for a log label), and back on the way out. GNSS time scales and weeks are in
|
|
184
231
|
the `gmt-gnss` skill.
|
|
185
232
|
|
|
186
233
|
## Key functions
|
|
187
234
|
|
|
188
235
|
- **Leap seconds and TAI** (`@northguild/gmt/timescale`): `taiMinusUtc`,
|
|
189
|
-
`leapSecondsBetween`, `nextLeapSecond`, `isLeapSecond`, `toTAI`, `fromTAI`
|
|
236
|
+
`leapSecondsBetween`, `nextLeapSecond`, `isLeapSecond`, `toTAI`, `fromTAI`, `toTai64n`, `fromTai64n`, `toTT`, `fromTT`, `toTCG`, `fromTCG`, `tcgMinusTt`,
|
|
237
|
+
`toJulianDateParts`, `fromJulianDateParts`, `toJulianDate`, `fromJulianDate`,
|
|
238
|
+
`toModifiedJulianDate`, `fromModifiedJulianDate`, `toJ2000Seconds`, `fromJ2000Seconds`
|
|
190
239
|
|
|
191
240
|
- **Identifiers** (`@northguild/gmt/precision/identifiers`): `fromUuidTimestamp`,
|
|
192
241
|
`uuidV7TimestampPrefix`, `fromUlid`, `ulidTimestampPrefix`, `fromObjectId`,
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gmt-iot
|
|
3
|
+
description: >
|
|
4
|
+
Precision Time Protocol (PTP) timestamps in @northguild/gmt/iot — the
|
|
5
|
+
timestamp counts TAI, not UTC, and the receiver subtracts the currentUtcOffset
|
|
6
|
+
its grandmaster announces: ptpToUtc, utcToPtp, isValidPtpTimestamp and the
|
|
7
|
+
PtpTimestamp type { seconds, nanoseconds }. Skipping the offset leaves sensor
|
|
8
|
+
data 37 seconds ahead of every other clock with no error. The offset is
|
|
9
|
+
required and has no default. Reads the docs site (llms.txt) and the installed
|
|
10
|
+
package's JSDoc; a routing pointer, not an API dump.
|
|
11
|
+
sources:
|
|
12
|
+
- 'northguild/gmt:apps/dox/src/content/docs/guides/industries/iot-ptp-time.mdx'
|
|
13
|
+
- 'northguild/gmt:packages/gmt/src/iot/convert/index.ts'
|
|
14
|
+
- 'northguild/gmt:packages/gmt/src/iot/validate/index.ts'
|
|
15
|
+
- 'northguild/gmt:packages/gmt/src/types/ptp.ts'
|
|
16
|
+
metadata:
|
|
17
|
+
type: core
|
|
18
|
+
library: '@northguild/gmt'
|
|
19
|
+
library_version: '1.22.0'
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# GMT IoT
|
|
23
|
+
|
|
24
|
+
Use this skill when the task is reading, writing or checking a PTP (IEEE 1588)
|
|
25
|
+
timestamp: a count of seconds and nanoseconds from a sensor, a lidar unit, a
|
|
26
|
+
network card or a PTP log, which has to become a UTC instant or come from one.
|
|
27
|
+
|
|
28
|
+
## When to load
|
|
29
|
+
|
|
30
|
+
- The user has a PTP, gPTP or hardware timestamp and needs a UTC time.
|
|
31
|
+
- Sensor data sits about 37 seconds away from other clocks, with no error.
|
|
32
|
+
- The user asks which `currentUtcOffset` to use, or what the grandmaster
|
|
33
|
+
announces.
|
|
34
|
+
|
|
35
|
+
## Core rules
|
|
36
|
+
|
|
37
|
+
1. **A PTP timestamp counts TAI, not UTC.** The PTP epoch is 1970-01-01T00:00:00
|
|
38
|
+
TAI, and the count is not affected by leap seconds. It shares its epoch
|
|
39
|
+
value with Unix time but counts a different time scale. Reading it as Unix
|
|
40
|
+
time leaves the result ahead by the UTC offset (37 seconds since 2017) and
|
|
41
|
+
raises no error.
|
|
42
|
+
2. **The offset is the grandmaster's, and it is required.**
|
|
43
|
+
`currentUtcOffset` is TAI minus UTC in seconds: the `current-utc-offset` of
|
|
44
|
+
the grandmaster's time-properties data set (RFC 8575). `ptpToUtc` and
|
|
45
|
+
`utcToPtp` apply the number you pass and never read the leap-second table.
|
|
46
|
+
There is no default, because a constant would hide a wrong announcement.
|
|
47
|
+
```typescript
|
|
48
|
+
ptpToUtc({ seconds: 1704067237n, nanoseconds: 0 }, 37); // "2024-01-01T00:00:00Z"
|
|
49
|
+
ptpToUtc({ seconds: 1704067237n, nanoseconds: 0 }, 0); // "2024-01-01T00:00:37Z" (the 37-second error)
|
|
50
|
+
ptpToUtc({ seconds: 1704067237, nanoseconds: 500000000 }, 37); // "2024-01-01T00:00:00.5Z"
|
|
51
|
+
```
|
|
52
|
+
3. **Writing goes the other way.** `utcToPtp` reads an ISO 8601 instant with `Z`
|
|
53
|
+
or an offset and returns `{ seconds: bigint, nanoseconds }`.
|
|
54
|
+
```typescript
|
|
55
|
+
utcToPtp("2024-01-01T02:00:00+02:00", 37); // { seconds: 1704067237n, nanoseconds: 0 }
|
|
56
|
+
```
|
|
57
|
+
4. **Check the two flags before you call.** The offset means something only
|
|
58
|
+
when the grandmaster announces `currentUtcOffsetValid` true and
|
|
59
|
+
`ptpTimescale` true (RFC 8575). The functions take the number alone, so the
|
|
60
|
+
caller checks the flags. `timeTraceable` says whether to trust it at all.
|
|
61
|
+
5. **Sentinels, never exceptions.** `ptpToUtc` returns `""`, `utcToPtp` returns
|
|
62
|
+
`null` and `isValidPtpTimestamp` returns `false`. That covers `seconds`
|
|
63
|
+
outside 0 to 2^48 - 1, a `number` that is not a safe integer, `nanoseconds`
|
|
64
|
+
outside 0 to 999999999, an offset that is not an integer from -32768 to
|
|
65
|
+
32767, a missing member, a UTC second of `60`, and a result before
|
|
66
|
+
1970-01-01T00:00:00Z.
|
|
67
|
+
```typescript
|
|
68
|
+
ptpToUtc({ seconds: 0n, nanoseconds: 0 }, 37); // ""
|
|
69
|
+
isValidPtpTimestamp({ seconds: 2n ** 48n, nanoseconds: 0 }); // false
|
|
70
|
+
```
|
|
71
|
+
6. **Validate before you trust.** `isValidPtpTimestamp(value)` is a type
|
|
72
|
+
predicate for the record check. A record that passes can still convert to a
|
|
73
|
+
time before 1970, which `ptpToUtc` refuses.
|
|
74
|
+
7. **Check a grandmaster against the table.** To see whether an announced
|
|
75
|
+
offset is right for a date, compare it with `taiMinusUtc` (`@northguild/gmt`
|
|
76
|
+
leap-second functions) for the result. A grandmaster still announcing `36`
|
|
77
|
+
gives `2024-01-01T00:00:01Z` for the same record.
|
|
78
|
+
8. **Read the docs site.** This skill is a routing pointer. The map of the
|
|
79
|
+
docs is `https://northguild.dev/gmt/llms.txt`, and each page has a `.md`
|
|
80
|
+
twin that holds its text. The JSDoc ships in the installed package:
|
|
81
|
+
`node_modules/@northguild/gmt/dist/**/*.d.ts`.
|
|
82
|
+
|
|
83
|
+
## Key functions
|
|
84
|
+
|
|
85
|
+
- **PTP time** (`@northguild/gmt/iot`): `ptpToUtc`, `utcToPtp`,
|
|
86
|
+
`isValidPtpTimestamp`
|
|
87
|
+
- **Type**: `PtpTimestamp` is `{ seconds: bigint; nanoseconds: number }`;
|
|
88
|
+
`ptpToUtc` and `isValidPtpTimestamp` also take `seconds` as a safe-integer
|
|
89
|
+
`number`
|
|
90
|
+
|
|
91
|
+
## References
|
|
92
|
+
|
|
93
|
+
- [iot reference](https://northguild.dev/gmt/reference/iot/)
|
|
94
|
+
- [Docs map for agents (llms.txt)](https://northguild.dev/gmt/llms.txt)
|
|
95
|
+
- [GMT GNSS skill](../gmt-gnss/SKILL.md)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gmt-rail
|
|
3
|
+
description: >
|
|
4
|
+
GTFS Schedule times in @northguild/gmt/rail — the stop_times value that runs
|
|
5
|
+
past midnight (25:35:00): parseGtfsTime, formatGtfsTime, isValidGtfsTime,
|
|
6
|
+
gtfsToInstant (service date, GTFS time and agency zone to an instant) and the
|
|
7
|
+
GtfsTime type { seconds, dayOverflow }. The days past the service day are kept
|
|
8
|
+
apart from the time of day, so 25:35:00 reads as 1:35 with one day of overflow
|
|
9
|
+
and writes back as 25:35:00, never 01:35:00. Hours run 0 to 999. Reads the
|
|
10
|
+
docs site (llms.txt) and the installed package's JSDoc; a routing pointer, not
|
|
11
|
+
an API dump.
|
|
12
|
+
sources:
|
|
13
|
+
- 'northguild/gmt:apps/dox/src/content/docs/guides/industries/rail-gtfs-service-days.mdx'
|
|
14
|
+
- 'northguild/gmt:packages/gmt/src/rail/convert/index.ts'
|
|
15
|
+
- 'northguild/gmt:packages/gmt/src/rail/format/index.ts'
|
|
16
|
+
- 'northguild/gmt:packages/gmt/src/rail/parse/index.ts'
|
|
17
|
+
- 'northguild/gmt:packages/gmt/src/rail/validate/index.ts'
|
|
18
|
+
- 'northguild/gmt:packages/gmt/src/types/gtfs.ts'
|
|
19
|
+
metadata:
|
|
20
|
+
type: core
|
|
21
|
+
library: '@northguild/gmt'
|
|
22
|
+
library_version: '1.22.0'
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# GMT Rail
|
|
26
|
+
|
|
27
|
+
Use this skill when the task is reading, writing, checking or placing on the
|
|
28
|
+
timeline a GTFS Schedule
|
|
29
|
+
`Time` value, such as `arrival_time` or `departure_time` in `stop_times.txt`.
|
|
30
|
+
A trip that runs past midnight is written with an hour above 23 (`25:35:00`).
|
|
31
|
+
|
|
32
|
+
## When to load
|
|
33
|
+
|
|
34
|
+
- The user reads a GTFS feed and a stop time is `24:00:00` or later.
|
|
35
|
+
- The user asks why a parser rejects `25:35:00`, or why trips after midnight
|
|
36
|
+
land on the wrong date.
|
|
37
|
+
- The user needs to write a GTFS time back, or check that a value is one.
|
|
38
|
+
- The user needs the real instant of a stop time, from a service date and the
|
|
39
|
+
agency's time zone.
|
|
40
|
+
|
|
41
|
+
## Core rules
|
|
42
|
+
|
|
43
|
+
1. **A GTFS time is not a clock reading.** `25:35:00` is 1:35 on the day after
|
|
44
|
+
the service day, and it still belongs to that service day. Do not read it
|
|
45
|
+
with `PlainTime` (it refuses the hour, or clamps it to `23:35:00`), and do
|
|
46
|
+
not fold it into `01:35:00`: every trip after midnight then moves to the
|
|
47
|
+
wrong date.
|
|
48
|
+
2. **The overflow is kept apart from the time.** `parseGtfsTime` returns
|
|
49
|
+
`{ seconds, dayOverflow }`: the written time less whole 24-hour blocks, in
|
|
50
|
+
seconds (0 to 86399), and the whole days past the service day.
|
|
51
|
+
```typescript
|
|
52
|
+
parseGtfsTime("25:35:00"); // { seconds: 5700, dayOverflow: 1 }
|
|
53
|
+
parseGtfsTime("8:05:00"); // { seconds: 29100, dayOverflow: 0 }
|
|
54
|
+
parseGtfsTime("110:29:00"); // { seconds: 52140, dayOverflow: 4 }
|
|
55
|
+
```
|
|
56
|
+
3. **Writing gives the service-day form back.**
|
|
57
|
+
```typescript
|
|
58
|
+
formatGtfsTime({ seconds: 5700, dayOverflow: 1 }); // "25:35:00"
|
|
59
|
+
formatGtfsTime({ seconds: 29100, dayOverflow: 0 }); // "08:05:00"
|
|
60
|
+
```
|
|
61
|
+
4. **Hours run 0 to 999.** GTFS states no upper bound, so the bound is GMT's:
|
|
62
|
+
MobilityData's gtfs-validator reads one to three hour digits, and real feeds
|
|
63
|
+
write three (VIA Rail's `110:29:00`). The parser reads one to three hour
|
|
64
|
+
digits; the formatter writes at least two and refuses a total past
|
|
65
|
+
`999:59:59`.
|
|
66
|
+
5. **Sentinels, never exceptions.** `parseGtfsTime` returns `null`,
|
|
67
|
+
`formatGtfsTime` returns `""` and `isValidGtfsTime` returns `false`. That
|
|
68
|
+
covers minutes or seconds past 59, a missing field, a fraction, a sign and
|
|
69
|
+
a value that is not a string. Nothing is trimmed: a space, tab, newline or
|
|
70
|
+
byte order mark returns the sentinel, so strip them in your CSV reader.
|
|
71
|
+
6. **Validate before you trust.** `isValidGtfsTime(value)` is `true` exactly
|
|
72
|
+
when `parseGtfsTime` returns a value.
|
|
73
|
+
7. **`dayOverflow * 86400 + seconds` is not a clock reading.** GTFS measures a
|
|
74
|
+
time from noon minus 12 hours of the service day, so it matches the wall
|
|
75
|
+
clock only when no clock change falls between that anchor and the time. The
|
|
76
|
+
parse, format and validate functions name no date and read no zone. To get
|
|
77
|
+
the instant, call `gtfsToInstant(serviceDate, gtfsTime, agencyTimezone)`: it
|
|
78
|
+
returns the UTC instant, or `""` on invalid input. Pass `agency_timezone`
|
|
79
|
+
even for a stop with its own `stop_timezone`, because the anchor is the
|
|
80
|
+
agency's. A noon the zone skipped or repeated returns `""`.
|
|
81
|
+
```typescript
|
|
82
|
+
gtfsToInstant("20240130", "25:35:00", "America/Los_Angeles"); // "2024-01-31T09:35:00Z"
|
|
83
|
+
```
|
|
84
|
+
8. **Read the docs site.** This skill is a routing pointer. The map of the
|
|
85
|
+
docs is `https://northguild.dev/gmt/llms.txt`, and each page has a `.md`
|
|
86
|
+
twin that holds its text. The JSDoc ships in the installed package:
|
|
87
|
+
`node_modules/@northguild/gmt/dist/**/*.d.ts`.
|
|
88
|
+
|
|
89
|
+
## Key functions
|
|
90
|
+
|
|
91
|
+
- **GTFS times** (`@northguild/gmt/rail`): `parseGtfsTime`, `formatGtfsTime`,
|
|
92
|
+
`isValidGtfsTime`
|
|
93
|
+
- **GTFS time to instant** (`@northguild/gmt/rail/convert`, also in
|
|
94
|
+
`@northguild/gmt/rail`): `gtfsToInstant`
|
|
95
|
+
- **Type**: `GtfsTime` is `{ seconds: number; dayOverflow: number }`
|
|
96
|
+
|
|
97
|
+
## References
|
|
98
|
+
|
|
99
|
+
- [rail reference](https://northguild.dev/gmt/reference/rail/)
|
|
100
|
+
- [Docs map for agents (llms.txt)](https://northguild.dev/gmt/llms.txt)
|
|
101
|
+
- [GMT Transport skill](../gmt-transport/SKILL.md)
|