# duration/calculate

Industry: Core

- [`absDuration`](/gmt/reference/duration/calculate/absDuration/): Return the absolute value of an ISO 8601 duration string.
- [`addDuration`](/gmt/reference/duration/calculate/addDuration/): Combine two ISO 8601 duration strings by addition.
- [`durationFromUnits`](/gmt/reference/duration/calculate/durationFromUnits/): Write an amount given as a unit object, such as `{ minutes: 15 }`, as an ISO 8601 duration string.
- [`getDurationSign`](/gmt/reference/duration/calculate/getDurationSign/): Report whether an ISO 8601 duration is negative, zero-length, or positive.
- [`getDurationUnit`](/gmt/reference/duration/calculate/getDurationUnit/): Read a single component out of an ISO 8601 duration string.
- [`negateDuration`](/gmt/reference/duration/calculate/negateDuration/): Flip the sign of an ISO 8601 duration string.
- [`subtractDuration`](/gmt/reference/duration/calculate/subtractDuration/): Combine two ISO 8601 duration strings by subtraction.
- [`totalDuration`](/gmt/reference/duration/calculate/totalDuration/): Express an ISO 8601 duration as a single fractional total in one unit.
- [`totalUnits`](/gmt/reference/duration/calculate/totalUnits/): Express an amount written as a unit object, such as `{ minutes: 15 }`, as a single fractional total in one unit.
- [`totalUnitsFromNow`](/gmt/reference/duration/calculate/totalUnitsFromNow/): Express a length of time from now as one fractional total in one unit.
- [`ttlFromNow`](/gmt/reference/duration/calculate/ttlFromNow/): 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.

## Types

- [`ExactDurationUnit`](/gmt/reference/duration/calculate/totalUnits/#exactdurationunit): The plural name of a duration field that has an exact length: `"days"`, or a time field from `"hours"` down to `"nanoseconds"`.
- [`Ttl`](/gmt/reference/duration/calculate/ttlFromNow/#ttl): One length from now, in each form a receiver wants.
