utc/interval
intervalAbutsUtc: Return true when two half-open UTC intervals[aStart, aEnd)and[bStart, bEnd)are exactly adjacent — one ends where the other starts, so they share nothing and leave no gap.intervalContainsUtc: Return true whenpointOrStartlies in the half-open interval[intervalStart, intervalEnd)(3-arg), or when the inner interval[innerStart, innerEnd)lies within it (4-arg).intervalCountUtc: Count how manyunitboundaries a UTC interval crosses.intervalDifferenceUtc: Return the portion(s) of interval A not covered by interval B.intervalDivideEquallyUtc: Split a UTC interval intonequal-length sub-intervals.intervalEngulfsUtc: Return true when the half-open interval B[bStart, bEnd)lies within the half-open interval A[aStart, aEnd)— every instant of B is also in A.intervalFromDurationUtc: Construct a UTC interval from a single point plus an ISO 8601 duration, anchored at either end.intervalIntersectionUtc: Return the overlapping span of two UTC intervals, or null when they do not overlap.intervalLengthUtc: Return the exact length of a UTC interval inunit, as a real (possibly fractional) number.intervalOverlappingDaysUtc: Return how many distinct UTC calendar dates two UTC intervals share.intervalsOverlapUtc: Return true when the half-open UTC intervals[aStart, aEnd)and[bStart, bEnd)share at least one instant.intervalSplitAtUtc: Split a UTC interval at arbitrarypoints, producing consecutive sub-intervals.intervalUnionUtc: Return the combined span of two UTC intervals, or null when they are disjoint.intervalXorAllUtc: Return the symmetric difference across a list of UTC intervals — the set of instants covered by an odd number of the input intervals.intervalXorUtc: Return the symmetric difference of two UTC intervals — time covered by exactly one interval.isValidUtcInterval: Return true ifstartandendform a valid UTC interval — both parseable as ISO UTC datetime strings and the instant atstartis <= the instant atend.mergeIntervalsUtc: Collapse a list of UTC intervals into the minimum set of non-overlapping intervals.splitIntervalByUnitUtc: Split a UTC interval into sub-intervals ofamount × unit.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.