# utc/calculate

Industry: Core

- [`addUtc`](/gmt/reference/utc/calculate/addUtc/): Add a temporal amount to a UTC datetime string and return a new UTC Instant string.
- [`diffUtc`](/gmt/reference/utc/calculate/diffUtc/): Return the difference between two UTC datetimes measured in the given date-time unit.
- [`diffUtcAsDuration`](/gmt/reference/utc/calculate/diffUtcAsDuration/): Return the difference between two UTC datetimes as an ISO 8601 duration string, bridging to the `duration` namespace (see `parseDuration`, `normalizeDuration`).
- [`endOfQuarterForUtc`](/gmt/reference/utc/calculate/endOfQuarterForUtc/): Return the end of the quarter for a given UTC Instant string.
- [`endOfUtc`](/gmt/reference/utc/calculate/endOfUtc/): Return the end of the specified date-time `unit` for a given UTC datetime string.
- [`isBetweenUtc`](/gmt/reference/utc/calculate/isBetweenUtc/): Return true when `value` is between `start` and `end` (inclusive by default).
- [`maxUtc`](/gmt/reference/utc/calculate/maxUtc/): Return the latest (maximum) of the given UTC datetime values.
- [`minUtc`](/gmt/reference/utc/calculate/minUtc/): Return the earliest (minimum) of the given UTC datetime values.
- [`roundUtc`](/gmt/reference/utc/calculate/roundUtc/): Round a UTC datetime string to the specified unit.
- [`secondsUntilHttpDate`](/gmt/reference/utc/calculate/secondsUntilHttpDate/): Return the whole seconds from now until an HTTP header date, such as `Expires`.
- [`secondsUntilRetryAfter`](/gmt/reference/utc/calculate/secondsUntilRetryAfter/): Return the whole seconds to wait from a `Retry-After` header value.
- [`setUtc`](/gmt/reference/utc/calculate/setUtc/): Return a UTC Instant string with the given `fields` set on `value`.
- [`sortUtc`](/gmt/reference/utc/calculate/sortUtc/): Sort an array of UTC datetime values in ascending or descending order.
- [`startOfQuarterForUtc`](/gmt/reference/utc/calculate/startOfQuarterForUtc/): Return the start of the quarter for a given UTC datetime string.
- [`startOfUtc`](/gmt/reference/utc/calculate/startOfUtc/): Return the start of the specified date-time `unit` for a given UTC datetime string.
- [`subtractUtc`](/gmt/reference/utc/calculate/subtractUtc/): Subtract a temporal amount from a UTC datetime string and return a new UTC Instant string.
