Skip to content
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 when pointOrStart lies in the half-open interval [intervalStart, intervalEnd) (3-arg), or when the inner interval [innerStart, innerEnd) lies within it (4-arg).
intervalCountUtc: Count how many unit boundaries a UTC interval crosses.
intervalDifferenceUtc: Return the portion(s) of interval A not covered by interval B.
intervalDivideEquallyUtc: Split a UTC interval into n equal-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 in unit, 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 arbitrary points, 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 if start and end form a valid UTC interval — both parseable as ISO UTC datetime strings and the instant at start is <= the instant at end.
mergeIntervalsUtc: Collapse a list of UTC intervals into the minimum set of non-overlapping intervals.
splitIntervalByUnitUtc: Split a UTC interval into sub-intervals of amount × unit.