# @northguild/gmt/duration > Add, compare, total, parse and format ISO 8601 duration strings such as P1DT2H, and read human wording like 2h 30m. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## calculate - [absDuration](https://northguild.dev/gmt/reference/duration/calculate/absDuration.md): Return the absolute value of an ISO 8601 duration string. - [addDuration](https://northguild.dev/gmt/reference/duration/calculate/addDuration.md): Combine two ISO 8601 duration strings by addition. - [durationFromUnits](https://northguild.dev/gmt/reference/duration/calculate/durationFromUnits.md): Write an amount given as a unit object, such as `{ minutes: 15 }`, as an ISO 8601 duration string. - [getDurationSign](https://northguild.dev/gmt/reference/duration/calculate/getDurationSign.md): Report whether an ISO 8601 duration is negative, zero-length, or positive. - [getDurationUnit](https://northguild.dev/gmt/reference/duration/calculate/getDurationUnit.md): Read a single component out of an ISO 8601 duration string. - [negateDuration](https://northguild.dev/gmt/reference/duration/calculate/negateDuration.md): Flip the sign of an ISO 8601 duration string. - [subtractDuration](https://northguild.dev/gmt/reference/duration/calculate/subtractDuration.md): Combine two ISO 8601 duration strings by subtraction. - [totalDuration](https://northguild.dev/gmt/reference/duration/calculate/totalDuration.md): Express an ISO 8601 duration as a single fractional total in one unit. - [totalUnits](https://northguild.dev/gmt/reference/duration/calculate/totalUnits.md): Express an amount written as a unit object, such as `{ minutes: 15 }`, as a single fractional total in one unit. - [totalUnitsFromNow](https://northguild.dev/gmt/reference/duration/calculate/totalUnitsFromNow.md): Express a length of time from now as one fractional total in one unit. - [ttlFromNow](https://northguild.dev/gmt/reference/duration/calculate/ttlFromNow.md): Express one length of time from now in every form a receiver wants: seconds, milliseconds, a Unix epoch, an HTTP date and a UTC string. ## compare - [compareDurations](https://northguild.dev/gmt/reference/duration/compare/compareDurations.md): Compare two ISO 8601 duration strings by length. ## format - [formatDuration](https://northguild.dev/gmt/reference/duration/format/formatDuration.md): Render an ISO 8601 duration string as a locale-aware, human-readable string. - [formatHumanDuration](https://northguild.dev/gmt/reference/duration/format/formatHumanDuration.md): Write an ISO 8601 duration in the compact form `parseHumanDuration` reads, such as `2h 30m`. ## normalize - [normalizeDuration](https://northguild.dev/gmt/reference/duration/normalize/normalizeDuration.md): Roll an ISO 8601 duration string's small units into larger ones. ## parse - [parseDuration](https://northguild.dev/gmt/reference/duration/parse/parseDuration.md): Parse and re-normalize an ISO 8601 duration string. - [parseHumanDuration](https://northguild.dev/gmt/reference/duration/parse/parseHumanDuration.md): Read a duration written the way people write it, such as `2h 30m`, `1.5h` or `3 days`, into an ISO 8601 duration string. ## validate - [isValidDuration](https://northguild.dev/gmt/reference/duration/validate/isValidDuration.md): Return true if `value` is a valid ISO 8601 duration string.