Skip to content
addZoned: Add a temporal amount to a zoned ISO 8601 datetime string and return a zoned ISO 8601 string.
addZonedBusinessDays: Return a zoned ISO 8601 datetime string with amount business days added to value.
clampZoned: Restrict value to the range [min, max] in zoned datetime space.
closestZonedTo: Return the candidate zoned datetime nearest to target by temporal distance.
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: Return the difference between two zoned datetimes measured in the given date-time unit.
diffZonedAsDuration: Return the difference between two zoned datetimes as an ISO 8601 duration string, bridging to the duration namespace (see parseDuration, normalizeDuration).
endOfQuarterForZoned: Return the end of the quarter for a given zoned ISO datetime.
endOfZoned: Return the end of the specified date-time unit for a given zoned ISO 8601 datetime string.
getHoursInZonedDay: Return the number of hours in the calendar day a zoned datetime falls on.
getLocaleZonedDayOfWeek: Return the locale-relative day-of-week index for a zoned value.
getLocaleZonedEndOfWeek: Return the end of the week containing value, using locale’s first day of week (e.g. en-US: week ends Saturday, fr-FR: week ends Sunday).
getLocaleZonedStartOfWeek: Return the start of the week containing value, using locale’s first day of week (e.g. en-US: Sunday, fr-FR: Monday).
getQuarterForZoned: Return the quarter of the year (1-4) for a given zoned ISO datetime.
maxZoned: Return the latest (maximum) of the given ZonedDateTime values.
minZoned: Return the earliest (minimum) of the given ZonedDateTime values.
roundZoned: Round an ISO 8601 zoned datetime string to the specified unit.
setZoned: Return a zoned ISO 8601 datetime string with the given fields set on value.
sortZoned: Sort an array of ZonedDateTime values in ascending or descending order.
startOfQuarterForZoned: Return the start of the quarter for a given zoned ISO datetime.
startOfZoned: Return the start of the specified date-time unit for a given zoned ISO 8601 datetime string.
subtractZoned: Subtract a temporal amount from a zoned ISO 8601 datetime string and return a zoned ISO 8601 string.
subtractZonedBusinessDays: Return a zoned ISO 8601 datetime string with amount business days subtracted from value.