interval/calculate
clampInterval: Return the part ofintervalthat lies insidebounds, or null when none of it does.intersectIntervals: Return the half-open interval two intervals share, or null when they share no instant.mergeIntervals: Collapse a list of half-open intervals into the fewest sorted, non-overlapping intervals.splitIntervalAt: Split a half-open interval at instant boundaries into consecutive half-open pieces.subtractIntervals: Return the parts offromthat no interval inremovecovers, as sorted half-open intervals.sumIntervals: Return the time covered by a list of half-open intervals, as an exact ISO 8601 duration.
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.