# zoned/calculate

Industry: Core

- [`addZoned`](/gmt/reference/zoned/calculate/addZoned/): Add a temporal amount to a zoned ISO 8601 datetime string and return a zoned ISO 8601 string.
- [`addZonedBusinessDays`](/gmt/reference/zoned/calculate/addZonedBusinessDays/): Return a zoned ISO 8601 datetime string with `amount` business days added to `value`.
- [`clampZoned`](/gmt/reference/zoned/calculate/clampZoned/): Restrict `value` to the range [`min`, `max`] in zoned datetime space.
- [`closestZonedTo`](/gmt/reference/zoned/calculate/closestZonedTo/): Return the candidate zoned datetime nearest to `target` by temporal distance.
- [`cycleZoned`](/gmt/reference/zoned/calculate/cycleZoned/): Return a ZonedDateTime ISO string with `field` cycled by `amount`, wrapping at that field's own min/max instead of carrying into the next larger field.
- [`diffZoned`](/gmt/reference/zoned/calculate/diffZoned/): Return the difference between two zoned datetimes measured in the given date-time unit.
- [`diffZonedAsDuration`](/gmt/reference/zoned/calculate/diffZonedAsDuration/): Return the difference between two zoned datetimes as an ISO 8601 duration string, bridging to the `duration` namespace (see `parseDuration`, `normalizeDuration`).
- [`endOfQuarterForZoned`](/gmt/reference/zoned/calculate/endOfQuarterForZoned/): Return the end of the quarter for a given zoned ISO datetime.
- [`endOfZoned`](/gmt/reference/zoned/calculate/endOfZoned/): Return the end of the specified date-time `unit` for a given zoned ISO 8601 datetime string.
- [`getHoursInZonedDay`](/gmt/reference/zoned/calculate/getHoursInZonedDay/): Return the number of hours in the calendar day a zoned datetime falls on.
- [`getLocaleZonedDayOfWeek`](/gmt/reference/zoned/calculate/getLocaleZonedDayOfWeek/): Return the locale-relative day-of-week index for a zoned `value`.
- [`getLocaleZonedEndOfWeek`](/gmt/reference/zoned/calculate/getLocaleZonedEndOfWeek/): Return the end of the week containing `value`, using `locale`'s first day of week (e.g. fr-FR: week ends Sunday, ja-JP: week ends Saturday).
- [`getLocaleZonedStartOfWeek`](/gmt/reference/zoned/calculate/getLocaleZonedStartOfWeek/): Return the start of the week containing `value`, using `locale`'s first day of week (e.g. fr-FR: Monday, hi-IN: Sunday).
- [`getQuarterForZoned`](/gmt/reference/zoned/calculate/getQuarterForZoned/): Return the quarter of the year (1-4) for a given zoned ISO datetime.
- [`maxZoned`](/gmt/reference/zoned/calculate/maxZoned/): Return the latest (maximum) of the given ZonedDateTime values.
- [`minZoned`](/gmt/reference/zoned/calculate/minZoned/): Return the earliest (minimum) of the given ZonedDateTime values.
- [`roundZoned`](/gmt/reference/zoned/calculate/roundZoned/): Round an ISO 8601 zoned datetime string to the specified unit.
- [`setZoned`](/gmt/reference/zoned/calculate/setZoned/): Return a zoned ISO 8601 datetime string with the given `fields` set on `value`.
- [`sortZoned`](/gmt/reference/zoned/calculate/sortZoned/): Sort an array of ZonedDateTime values in ascending or descending order.
- [`startOfQuarterForZoned`](/gmt/reference/zoned/calculate/startOfQuarterForZoned/): Return the start of the quarter for a given zoned ISO datetime.
- [`startOfZoned`](/gmt/reference/zoned/calculate/startOfZoned/): Return the start of the specified date-time `unit` for a given zoned ISO 8601 datetime string.
- [`subtractZoned`](/gmt/reference/zoned/calculate/subtractZoned/): Subtract a temporal amount from a zoned ISO 8601 datetime string and return a zoned ISO 8601 string.
- [`subtractZonedBusinessDays`](/gmt/reference/zoned/calculate/subtractZonedBusinessDays/): Return a zoned ISO 8601 datetime string with `amount` business days subtracted from `value`.
