# @northguild/gmt/interval > Half-open intervals of ISO 8601 instants: merge, clamp, split, subtract, sum and test them for overlap. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## calculate - [clampInterval](https://northguild.dev/gmt/reference/interval/calculate/clampInterval.md): Return the part of `interval` that lies inside `bounds`, or null when none of it does. - [intersectIntervals](https://northguild.dev/gmt/reference/interval/calculate/intersectIntervals.md): Return the half-open interval two intervals share, or null when they share no instant. - [mergeIntervals](https://northguild.dev/gmt/reference/interval/calculate/mergeIntervals.md): Collapse a list of half-open intervals into the fewest sorted, non-overlapping intervals. - [splitIntervalAt](https://northguild.dev/gmt/reference/interval/calculate/splitIntervalAt.md): Split a half-open interval at instant boundaries into consecutive half-open pieces. - [subtractIntervals](https://northguild.dev/gmt/reference/interval/calculate/subtractIntervals.md): Return the parts of `from` that no interval in `remove` covers, as sorted half-open intervals. - [sumIntervals](https://northguild.dev/gmt/reference/interval/calculate/sumIntervals.md): Return the time covered by a list of half-open intervals, as an exact ISO 8601 duration. ## compare - [intervalContains](https://northguild.dev/gmt/reference/interval/compare/intervalContains.md): Return true when an ISO 8601 instant string lies inside a half-open interval. - [intervalsOverlap](https://northguild.dev/gmt/reference/interval/compare/intervalsOverlap.md): Return true when two half-open intervals share at least one instant. ## validate - [isValidInterval](https://northguild.dev/gmt/reference/interval/validate/isValidInterval.md): Validate whether a value is an `Interval` the `interval/` namespace accepts.