# @northguild/gmt > Temporal-first date and time utilities with timezone support and polyfill integration. ## Reference — duration - [absDuration](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/absDuration.md): Return the absolute value of an ISO 8601 duration string. - [addDuration](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/addDuration.md): Combine two ISO 8601 duration strings by addition. - [compareDurations](https://gmt-dox.northguild.workers.dev/reference/duration/compare/compareDurations.md): Compare two ISO 8601 duration strings by length. - [durationAs](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/durationAs.md): Express an ISO 8601 duration as a single fractional total in one unit. - [DurationUnit](https://gmt-dox.northguild.workers.dev/reference/duration/format/DurationUnit.md): The DurationUnit type. - [formatDuration](https://gmt-dox.northguild.workers.dev/reference/duration/format/formatDuration.md): Render an ISO 8601 duration string as a locale-aware, human-readable string. - [FormatDurationOptions](https://gmt-dox.northguild.workers.dev/reference/duration/format/FormatDurationOptions.md): The FormatDurationOptions type. - [getDurationSign](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/getDurationSign.md): Report whether an ISO 8601 duration is negative, zero-length, or positive. - [getDurationUnit](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/getDurationUnit.md): Read a single component out of an ISO 8601 duration string. - [isValidDuration](https://gmt-dox.northguild.workers.dev/reference/duration/validate/isValidDuration.md): Return true if `value` is a valid ISO 8601 duration string. - [negateDuration](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/negateDuration.md): Flip the sign of an ISO 8601 duration string. - [normalizeDuration](https://gmt-dox.northguild.workers.dev/reference/duration/normalize/normalizeDuration.md): Roll an ISO 8601 duration string's small units into larger ones. - [parseDuration](https://gmt-dox.northguild.workers.dev/reference/duration/parse/parseDuration.md): Parse and re-normalize an ISO 8601 duration string. - [subtractDuration](https://gmt-dox.northguild.workers.dev/reference/duration/calculate/subtractDuration.md): Combine two ISO 8601 duration strings by subtraction. ## Reference — plain - [addBusinessDays](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/addBusinessDays.md): Return a PlainDate ISO string with `amount` business days added to `value`. - [addDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/addDate.md): Return a PlainDate ISO string with `amount` added according to `units`. - [addDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/addDateTime.md): Return a PlainDateTime ISO string with `units` added to `value`. - [addTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/addTime.md): Return a PlainTime ISO string with `units` added to `value`. - [areDatesEqual](https://gmt-dox.northguild.workers.dev/reference/plain/compare/areDatesEqual.md): Compare two ISO date-like strings for equality, ignoring time components. - [areDatesEqualBy](https://gmt-dox.northguild.workers.dev/reference/plain/compare/areDatesEqualBy.md): Compare two ISO date strings for equality at a given calendar unit. - [areDateTimesEqual](https://gmt-dox.northguild.workers.dev/reference/plain/compare/areDateTimesEqual.md): Return true if two PlainDateTime ISO strings represent the same instant of local date/time components. - [areDateTimesEqualBy](https://gmt-dox.northguild.workers.dev/reference/plain/compare/areDateTimesEqualBy.md): Compare two ISO datetime strings for equality at a given unit. - [areTimesEqual](https://gmt-dox.northguild.workers.dev/reference/plain/compare/areTimesEqual.md): Return true if two PlainTime ISO strings represent the same time components. - [chopDate](https://gmt-dox.northguild.workers.dev/reference/plain/chop/chopDate.md): Return the PlainTime portion extracted from an ISO PlainDateTime string. - [chopMilliseconds](https://gmt-dox.northguild.workers.dev/reference/plain/chop/chopMilliseconds.md): Return a string with millisecond precision removed from a PlainDateTime or PlainTime value. - [chopSeconds](https://gmt-dox.northguild.workers.dev/reference/plain/chop/chopSeconds.md): Return an ISO string with second precision removed from a PlainDateTime or PlainTime value. - [chopTime](https://gmt-dox.northguild.workers.dev/reference/plain/chop/chopTime.md): Return the PlainDate portion extracted from an ISO PlainDateTime string. - [clampDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/clampDate.md): Restrict `value` to the range [`min`, `max`]. - [closestDateTo](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/closestDateTo.md): Return the candidate date nearest to `target` by calendar distance. - [convertDateToCalendar](https://gmt-dox.northguild.workers.dev/reference/plain/convert/convertDateToCalendar.md): Convert a PlainDate to the same date expressed in a different calendar system. - [cycleDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/cycleDate.md): Return a PlainDate ISO string with `field` cycled by `amount`, wrapping at that field's own - [cycleDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/cycleDateTime.md): Return a PlainDateTime ISO string with `field` cycled by `amount`, wrapping at that field's own - [cycleTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/cycleTime.md): Return a PlainTime ISO string with `field` cycled by `amount`, wrapping at that field's own - [diffDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/diffDate.md): Return the difference between two PlainDate values using the provided `unit`. - [diffDateAsDuration](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/diffDateAsDuration.md): Return the difference between two PlainDate values as an ISO 8601 duration string, - [diffDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/diffDateTime.md): Return the difference between two PlainDateTime values in the requested unit. - [diffDateTimeAsDuration](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/diffDateTimeAsDuration.md): Return the difference between two PlainDateTime values as an ISO 8601 duration string, - [diffTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/diffTime.md): Return the difference between two PlainTime values in the requested unit. - [endOfDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/endOfDate.md): Return the end of the specified date `unit` for a given ISO 8601 date string. - [endOfDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/endOfDateTime.md): Return the end of the specified date-time `unit` for a given ISO 8601 datetime string. - [endOfQuarterForDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/endOfQuarterForDate.md): Return the last day of the quarter for a given ISO date. - [endOfQuarterForDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/endOfQuarterForDateTime.md): Return the end of the quarter for a given ISO datetime. - [endOfTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/endOfTime.md): Return the end of the specified time `unit` for a given ISO 8601 time string. - [EndOfTimeUnit](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/EndOfTimeUnit.md): The EndOfTimeUnit type. - [formatCalendar](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatCalendar.md): Format a plain date-time as a relative day label plus time-of-day, e.g. - [FormatCalendarOptions](https://gmt-dox.northguild.workers.dev/reference/plain/format/FormatCalendarOptions.md): The FormatCalendarOptions type. - [formatDate](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatDate.md): Return a localized string for a PlainDate ISO input using Intl options. - [formatDateRange](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatDateRange.md): Format a plain date range using the Temporal Intl.DateTimeFormat formatRange API. - [formatDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatDateTime.md): Return a localized string for a PlainDateTime ISO input using Intl options. - [formatDateTimeRange](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatDateTimeRange.md): Format a plain datetime range using the Temporal Intl.DateTimeFormat formatRange API. - [formatDateTimeToParts](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatDateTimeToParts.md): Return the locale-formatted parts of a PlainDateTime. - [formatDateToParts](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatDateToParts.md): Return the locale-formatted parts of a PlainDate. - [formatRelativeDate](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatRelativeDate.md): Format the relative time between a plain date and a reference date. - [FormatRelativeDateOptions](https://gmt-dox.northguild.workers.dev/reference/plain/format/FormatRelativeDateOptions.md): The FormatRelativeDateOptions type. - [formatRelativeDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatRelativeDateTime.md): Format the relative time between a plain date-time and a reference date-time. - [FormatRelativeDateTimeOptions](https://gmt-dox.northguild.workers.dev/reference/plain/format/FormatRelativeDateTimeOptions.md): The FormatRelativeDateTimeOptions type. - [formatRelativeTime](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatRelativeTime.md): Format the relative time between a plain time and a reference time. - [FormatRelativeTimeOptions](https://gmt-dox.northguild.workers.dev/reference/plain/format/FormatRelativeTimeOptions.md): The FormatRelativeTimeOptions type. - [formatSql](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatSql.md): Format a plain ISO 8601 datetime string as an ANSI SQL / ODBC datetime - [formatTime](https://gmt-dox.northguild.workers.dev/reference/plain/format/formatTime.md): Return a localized string for a PlainTime ISO input using Intl options. - [getDay](https://gmt-dox.northguild.workers.dev/reference/plain/get/getDay.md): Return the current day of month using the system timeZone. - [getDayOfWeek](https://gmt-dox.northguild.workers.dev/reference/plain/get/getDayOfWeek.md): Return the current ISO day of the week as a number in the system timeZone. - [getDayOfYear](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getDayOfYear.md): Return the ordinal day-of-year (1-based) for `value`. - [getDaysInMonth](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getDaysInMonth.md): Return the number of days in the month containing `value`. - [getDaysInYear](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getDaysInYear.md): Return the number of days in the calendar year containing `value`. - [getHour](https://gmt-dox.northguild.workers.dev/reference/plain/get/getHour.md): Return the current hour using the system timeZone. - [getLargestDateDurationUnit](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLargestDateDurationUnit.md): Return the largest DateDurationUnit from the provided array. - [getLargestDateTimeDurationUnit](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLargestDateTimeDurationUnit.md): Return the largest DateTimeDurationUnit from the provided array. - [getLargestTimeDurationUnit](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLargestTimeDurationUnit.md): Return the largest TimeDurationUnit from the provided array. - [getLocaleDayOfWeek](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLocaleDayOfWeek.md): Return the locale-relative day-of-week index for `value`. - [getLocaleEndOfWeek](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLocaleEndOfWeek.md): Return the end of the week containing `value`, using `locale`'s first - [getLocaleEraNames](https://gmt-dox.northguild.workers.dev/reference/plain/locale/getLocaleEraNames.md): Return a locale's Gregorian era names as [BCE-label, CE-label]. - [getLocaleMeridiems](https://gmt-dox.northguild.workers.dev/reference/plain/locale/getLocaleMeridiems.md): Return a locale's AM/PM (day-period) labels as `[AM-label, PM-label]`. - [getLocaleMonthNames](https://gmt-dox.northguild.workers.dev/reference/plain/locale/getLocaleMonthNames.md): Return the 12 Gregorian calendar-month names for a locale, in calendar - [getLocaleStartOfWeek](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLocaleStartOfWeek.md): Return the start of the week containing `value`, using `locale`'s - [getLocaleWeekdayNames](https://gmt-dox.northguild.workers.dev/reference/plain/locale/getLocaleWeekdayNames.md): Return the 7 weekday names for a locale, ordered starting from the - [getLocaleWeekYear](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getLocaleWeekYear.md): Return the locale-relative week-numbering year `value` belongs to, - [getMicrosecond](https://gmt-dox.northguild.workers.dev/reference/plain/get/getMicrosecond.md): Return the current microsecond using the system timeZone. - [getMillisecond](https://gmt-dox.northguild.workers.dev/reference/plain/get/getMillisecond.md): Return the current millisecond using the system timeZone. - [getMinute](https://gmt-dox.northguild.workers.dev/reference/plain/get/getMinute.md): Return the current minute using the system timeZone. - [getMonth](https://gmt-dox.northguild.workers.dev/reference/plain/get/getMonth.md): Return the current month using the system timeZone. - [getNanosecond](https://gmt-dox.northguild.workers.dev/reference/plain/get/getNanosecond.md): Return the current nanosecond using the system timeZone. - [getNow](https://gmt-dox.northguild.workers.dev/reference/plain/get/getNow.md): Return the current local PlainDateTime as an ISO string using the system timeZone. - [getNowUnit](https://gmt-dox.northguild.workers.dev/reference/plain/get/getNowUnit.md): Return the requested current unit value using the system timeZone. - [getQuarterForDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getQuarterForDate.md): Return the quarter of the year (1-4) for a given ISO date. - [getQuarterForDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getQuarterForDateTime.md): Return the quarter of the year (1-4) for a given ISO datetime. - [getSecond](https://gmt-dox.northguild.workers.dev/reference/plain/get/getSecond.md): Return the current second using the system timeZone. - [getToday](https://gmt-dox.northguild.workers.dev/reference/plain/get/getToday.md): Return the current PlainDate as an ISO string in the system timeZone. - [getWeekNumber](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getWeekNumber.md): Calculate the week number based on configurable week start day. - [getWeekOfMonth](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getWeekOfMonth.md): Return the 1-based row `value` falls on within its month's calendar - [getWeekOfYear](https://gmt-dox.northguild.workers.dev/reference/plain/get/getWeekOfYear.md): Get the ISO week number of the current date. - [getWeeksInLocaleWeekYear](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getWeeksInLocaleWeekYear.md): Return the number of weeks (52 or 53) in the locale week-numbering year - [getWeeksInMonth](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getWeeksInMonth.md): Return the number of calendar-grid rows (4, 5, or 6) `value`'s month - [getWeeksInYear](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getWeeksInYear.md): Return the number of ISO weeks (52 or 53) in the ISO week-numbering year - [getWeekYear](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/getWeekYear.md): Return the ISO 8601 week-numbering year `value` belongs to. - [getYear](https://gmt-dox.northguild.workers.dev/reference/plain/get/getYear.md): Return the current year as a zero-padded string in the system timeZone. - [intervalAbutsDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalAbutsDate.md): Return true when two date intervals are exactly adjacent — one's end equals the other's start - [intervalAbutsDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalAbutsDateTime.md): Return true when two datetime intervals are exactly adjacent — one's end equals the other's - [intervalAbutsTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalAbutsTime.md): Return true when two time intervals are exactly adjacent — one's end equals the other's start - [intervalContainsDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalContainsDate.md): Return true when `pointOrStart` falls within the interval `[intervalStart, intervalEnd]` - [intervalContainsDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalContainsDateTime.md): Return true when `pointOrStart` falls within the interval `[intervalStart, intervalEnd]` - [intervalContainsTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalContainsTime.md): Return true when `pointOrStart` falls within the interval `[intervalStart, intervalEnd]` - [intervalCountDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalCountDate.md): Count how many `unit` boundaries a date interval crosses. - [intervalCountDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalCountDateTime.md): Count how many `unit` boundaries a date-time interval crosses. - [intervalCountTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalCountTime.md): Count how many `unit` boundaries a time interval crosses. - [intervalDifferenceDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalDifferenceDate.md): Return the portion(s) of interval A not covered by interval B. - [intervalDifferenceDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalDifferenceDateTime.md): Return the portion(s) of interval A not covered by interval B. - [intervalDifferenceTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalDifferenceTime.md): Return the portion(s) of interval A not covered by interval B. - [intervalDivideEquallyDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalDivideEquallyDate.md): Split a date interval into `n` equal-length sub-intervals. - [intervalDivideEquallyDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalDivideEquallyDateTime.md): Split a datetime interval into `n` equal-length sub-intervals. - [intervalDivideEquallyTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalDivideEquallyTime.md): Split a time interval into `n` equal-length sub-intervals. - [intervalEngulfsDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalEngulfsDate.md): Return true when interval B is fully contained within interval A — every instant of B - [intervalEngulfsDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalEngulfsDateTime.md): Return true when interval B is fully contained within interval A — every instant of B - [intervalEngulfsTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalEngulfsTime.md): Return true when interval B is fully contained within interval A — every instant of B - [intervalFromDurationDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalFromDurationDate.md): Construct a date interval from a single point plus an ISO 8601 duration, anchored at either end. - [intervalFromDurationDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalFromDurationDateTime.md): Construct a datetime interval from a single point plus an ISO 8601 duration, anchored at either end. - [intervalFromDurationTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalFromDurationTime.md): Construct a time interval from a single point plus an ISO 8601 duration, anchored at either end. - [intervalIntersectionDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalIntersectionDate.md): Return the overlapping span of two date intervals, or null when they do not overlap. - [intervalIntersectionDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalIntersectionDateTime.md): Return the overlapping span of two datetime intervals, or null when they do not overlap. - [intervalIntersectionTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalIntersectionTime.md): Return the overlapping span of two time intervals, or null when they do not overlap. - [intervalLengthDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalLengthDate.md): Return the exact length of a date interval in `unit`, as a real (possibly fractional) number. - [intervalLengthDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalLengthDateTime.md): Return the exact length of a datetime interval in `unit`, as a real (possibly fractional) number. - [intervalLengthTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalLengthTime.md): Return the exact length of a time interval in `unit`, as a real (possibly fractional) number. - [intervalOverlappingDaysDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalOverlappingDaysDate.md): Return how many distinct calendar dates two date intervals share. - [intervalOverlappingDaysDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalOverlappingDaysDateTime.md): Return how many distinct calendar dates two datetime intervals share. - [intervalsOverlapDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalsOverlapDate.md): Return true when intervals `[aStart, aEnd]` and `[bStart, bEnd]` share at least one instant. - [intervalsOverlapDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalsOverlapDateTime.md): Return true when intervals `[aStart, aEnd]` and `[bStart, bEnd]` share at least one instant. - [intervalsOverlapTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalsOverlapTime.md): Return true when intervals `[aStart, aEnd]` and `[bStart, bEnd]` share at least one instant. - [intervalSplitAtDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalSplitAtDate.md): Split a date interval at arbitrary `points`, producing consecutive sub-intervals. - [intervalSplitAtDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalSplitAtDateTime.md): Split a datetime interval at arbitrary `points`, producing consecutive sub-intervals. - [intervalSplitAtTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalSplitAtTime.md): Split a time interval at arbitrary `points`, producing consecutive sub-intervals. - [intervalUnionDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalUnionDate.md): Return the combined span of two date intervals, or null when they are disjoint. - [intervalUnionDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalUnionDateTime.md): Return the combined span of two datetime intervals, or null when they are disjoint. - [intervalUnionTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalUnionTime.md): Return the combined span of two time intervals, or null when they are disjoint. - [intervalXorAllDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalXorAllDate.md): Return the symmetric difference across a list of date intervals — the set of dates covered - [intervalXorAllDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalXorAllDateTime.md): Return the symmetric difference across a list of datetime intervals — the set of instants - [intervalXorAllTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalXorAllTime.md): Return the symmetric difference across a list of time intervals — the set of clock times - [intervalXorDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalXorDate.md): Return the symmetric difference of two date intervals — time covered by exactly one interval. - [intervalXorDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalXorDateTime.md): Return the symmetric difference of two datetime intervals — time covered by exactly one interval. - [intervalXorTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/intervalXorTime.md): Return the symmetric difference of two time intervals — time covered by exactly one interval. - [isAfterDate](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isAfterDate.md): Return true if the first ISO PlainDate string represents a date after the second. - [isAfterDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isAfterDateTime.md): Return true when `value1` is strictly after `value2` for PlainDateTime values. - [isAfterTime](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isAfterTime.md): Return true when `value1` is strictly after `value2` for PlainTime values. - [isBeforeDate](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBeforeDate.md): Return true when `value1` is strictly before `value2` for PlainDate values. - [isBeforeDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBeforeDateTime.md): Return true when `value1` is strictly before `value2` for PlainDateTime values. - [isBeforeTime](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBeforeTime.md): Return true when `value1` is strictly before `value2` for PlainTime values. - [isBetweenDate](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBetweenDate.md): Return true when `date` is between `start` and `end` (inclusive by default). - [isBetweenDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBetweenDateTime.md): Return true when `dateTime` is between `start` and `end` (inclusive by default). - [isBetweenTime](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBetweenTime.md): Return true when `time` is between `start` and `end` (inclusive by default). - [isBusinessDay](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isBusinessDay.md): Return true when `value` falls on a Monday–Friday ISO business day. - [isFuture](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isFuture.md): Return true when `value` is strictly after today, per the system clock - [isLeapSecond](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isLeapSecond.md): Return true if the provided string is a valid ISO 8601 leap second datetime. - [isLeapYear](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isLeapYear.md): Return true when the given PlainDate falls in a leap year. - [isPast](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isPast.md): Return true when `value` is strictly before today, per the system clock - [isRelativeDay](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isRelativeDay.md): Return true when `value` falls `offsetDays` days from today, per the - [isThisUnit](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isThisUnit.md): Return true when `value` falls in the same `unit` as today, per the - [isValidCalendarDate](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidCalendarDate.md): Return true if `value` is a valid GMT PlainDate string: a plain ISO date - [isValidDate](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDate.md): Return true if `value` is a valid ISO PlainDate string. - [isValidDateCycleField](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateCycleField.md): Return true when `field` is a valid DateCycleField. - [isValidDateDurationUnit](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateDurationUnit.md) - [isValidDateInterval](https://gmt-dox.northguild.workers.dev/reference/plain/interval/isValidDateInterval.md): Return true if `start` and `end` form a valid date interval — both parseable as - [isValidDateRange](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateRange.md): Return whether `value1` is before `value2`. - [IsValidDateRangeProps](https://gmt-dox.northguild.workers.dev/reference/plain/validate/IsValidDateRangeProps.md): The IsValidDateRangeProps type. - [isValidDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateTime.md): Return true when `value` is a valid PlainDateTime string. - [isValidDateTimeCycleField](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateTimeCycleField.md): Return true when `field` is a valid DateTimeCycleField (a valid DateCycleField or - [isValidDateTimeDurationUnit](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateTimeDurationUnit.md) - [isValidDateTimeInterval](https://gmt-dox.northguild.workers.dev/reference/plain/interval/isValidDateTimeInterval.md): Return true if `start` and `end` form a valid datetime interval — both parseable as - [isValidDateTimeRange](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateTimeRange.md): Return true if `value1` and `value2` form a valid datetime range — both parseable as - [isValidDateTimeUnit](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateTimeUnit.md): Return true when `unit` is a valid DateTimeUnit. - [isValidDateUnit](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidDateUnit.md): Return true when `unit` is a valid DateUnit. - [isValidIsoDateLike](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidIsoDateLike.md): Return true when the input is a valid PlainDate or PlainDateTime ISO string. - [isValidPlainNowUnit](https://gmt-dox.northguild.workers.dev/reference/plain/get/isValidPlainNowUnit.md) - [isValidTime](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidTime.md): Return true when `value` is a valid ISO PlainTime string. - [isValidTimeCycleField](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidTimeCycleField.md): Return true when `field` is a valid TimeCycleField. - [isValidTimeDurationUnit](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidTimeDurationUnit.md) - [isValidTimeInterval](https://gmt-dox.northguild.workers.dev/reference/plain/interval/isValidTimeInterval.md): Return true if `start` and `end` form a valid time interval — both parseable as - [isValidTimeRange](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidTimeRange.md): Return true if `value1` and `value2` form a valid time range — both parseable as - [isValidTimeUnit](https://gmt-dox.northguild.workers.dev/reference/plain/validate/isValidTimeUnit.md): Return true when `unit` is a valid TimeUnit. - [isWeekend](https://gmt-dox.northguild.workers.dev/reference/plain/compare/isWeekend.md): Return true when `value` falls on a weekend day for `locale`. - [LocaleNameStyle](https://gmt-dox.northguild.workers.dev/reference/plain/locale/LocaleNameStyle.md): The LocaleNameStyle type. - [mapDatesInRange](https://gmt-dox.northguild.workers.dev/reference/plain/map/mapDatesInRange.md): Return an array of ISO PlainDate strings between `startDate` and `endDate` inclusive. - [mapDaysInMonth](https://gmt-dox.northguild.workers.dev/reference/plain/map/mapDaysInMonth.md): Return an array of ISO PlainDate strings for every day in the given year-month. - [maxDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/maxDate.md): Return the latest (maximum) of the given PlainDate values. - [maxDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/maxDateTime.md): Return the latest (maximum) of the given PlainDateTime values. - [maxTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/maxTime.md): Return the latest (maximum) of the given PlainTime values. - [mergeIntervalsDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/mergeIntervalsDate.md): Collapse a list of date intervals into the minimum set of non-overlapping intervals. - [mergeIntervalsDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/mergeIntervalsDateTime.md): Collapse a list of datetime intervals into the minimum set of non-overlapping intervals. - [mergeIntervalsTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/mergeIntervalsTime.md): Collapse a list of time intervals into the minimum set of non-overlapping intervals. - [minDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/minDate.md): Return the earliest (minimum) of the given PlainDate values. - [minDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/minDateTime.md): Return the earliest (minimum) of the given PlainDateTime values. - [minTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/minTime.md): Return the earliest (minimum) of the given PlainTime values. - [nextWeekday](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/nextWeekday.md): Return a PlainDate ISO string for the next occurrence of `dayOfWeek` on or after `value`. - [NowUnit](https://gmt-dox.northguild.workers.dev/reference/plain/get/NowUnit.md): The NowUnit type. - [parseDateTimeWithPattern](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseDateTimeWithPattern.md): Parse a datetime string against a caller-supplied token pattern (e.g. - [parseDateWithPattern](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseDateWithPattern.md): Parse a date string against a caller-supplied token pattern (e.g. - [parseDayFromDate](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseDayFromDate.md): Return the day of month (1-31) for a given ISO 8601 date string. - [parseDayFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseDayFromDateTime.md): Return the day of month (1-31) for a given ISO 8601 datetime string. - [parseDayOfWeekFromDate](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseDayOfWeekFromDate.md): Return the day of week (1-7) for a given ISO 8601 date string. - [parseDayOfWeekFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseDayOfWeekFromDateTime.md): Return the day of week (1-7) for a given ISO 8601 datetime string. - [parseHourFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseHourFromDateTime.md): Return the hour (00-23) for a given ISO 8601 datetime string. - [parseHourFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseHourFromTime.md): Return the hour (0-23) for a given ISO 8601 time string. - [parseMicrosecondFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMicrosecondFromDateTime.md): Return the microsecond (0-999) for a given ISO 8601 datetime string. - [parseMicrosecondFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMicrosecondFromTime.md): Return the microsecond (0-999) for a given ISO 8601 time string. - [parseMillisecondFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMillisecondFromDateTime.md): Return the millisecond (0-999) for a given ISO 8601 datetime string. - [parseMillisecondFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMillisecondFromTime.md): Return the millisecond (0-999) for a given ISO 8601 time string. - [parseMinuteFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMinuteFromDateTime.md): Return the minute (0-59) for a given ISO 8601 datetime string. - [parseMinuteFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMinuteFromTime.md): Return the minute (0-59) for a given ISO 8601 time string. - [parseMonthFromDate](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMonthFromDate.md): Return the month (1-12) for a given ISO 8601 date string. - [parseMonthFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseMonthFromDateTime.md): Return the month (1-12) for a given ISO 8601 datetime string. - [parseNanosecondFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseNanosecondFromDateTime.md): Return the nanosecond (0-999) for a given ISO 8601 datetime string. - [parseNanosecondFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseNanosecondFromTime.md): Return the nanosecond (0-999) for a given ISO 8601 time string. - [parseSecondFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseSecondFromDateTime.md): Return the second (0-59) for a given ISO 8601 datetime string. - [parseSecondFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseSecondFromTime.md): Return the second (0-59) for a given ISO 8601 time string. - [parseSql](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseSql.md): Parse an ANSI SQL / ODBC datetime literal — the `YYYY-MM-DD HH:MM:SS` form - [parseTimeWithPattern](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseTimeWithPattern.md): Parse a time string against a caller-supplied token pattern (e.g. - [parseUnitFromDate](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseUnitFromDate.md): Return a specific date unit extracted from a PlainDate string. - [parseUnitFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseUnitFromDateTime.md): Return a specific unit extracted from a PlainDateTime string. - [parseUnitFromTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseUnitFromTime.md): Return a specific time unit extracted from a PlainTime string. - [parseWeekFromDate](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseWeekFromDate.md): Return the week number for a given ISO 8601 date string. - [parseWeekFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseWeekFromDateTime.md): Return the week number for a given ISO 8601 datetime string. - [parseYearFromDate](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseYearFromDate.md): Return the year for a given ISO 8601 date string. - [parseYearFromDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/parse/parseYearFromDateTime.md): Return the year for a given ISO 8601 datetime string. - [previousWeekday](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/previousWeekday.md): Return a PlainDate ISO string for the previous occurrence of `dayOfWeek` on or before `value`. - [RelativeUnit](https://gmt-dox.northguild.workers.dev/reference/plain/format/RelativeUnit.md): No "hour"/"minute"/"second" — PlainDate has no time component. - [roundDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/roundDate.md): Round an ISO 8601 date string to the specified date unit. - [roundDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/roundDateTime.md): Round an ISO 8601 datetime string to the specified date-time unit. - [roundTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/roundTime.md): Round an ISO 8601 time string to the specified time unit. - [setDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/setDate.md): Return a PlainDate ISO string with the given `fields` set on `value`. - [setDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/setDateTime.md): Return a PlainDateTime ISO string with the given `fields` set on `value`. - [setTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/setTime.md): Return a PlainTime ISO string with the given `fields` set on `value`. - [sortDates](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/sortDates.md): Sort an array of PlainDate values in ascending or descending order. - [sortDateTimes](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/sortDateTimes.md): Sort an array of PlainDateTime values in ascending or descending order. - [sortTimes](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/sortTimes.md): Sort an array of PlainTime values in ascending or descending order. - [splitIntervalByUnitDate](https://gmt-dox.northguild.workers.dev/reference/plain/interval/splitIntervalByUnitDate.md): Split a date interval into sub-intervals of `amount × unit`. - [splitIntervalByUnitDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/splitIntervalByUnitDateTime.md): Split a date-time interval into sub-intervals of `amount × unit`. - [splitIntervalByUnitTime](https://gmt-dox.northguild.workers.dev/reference/plain/interval/splitIntervalByUnitTime.md): Split a time interval into sub-intervals of `amount × unit`. - [startOfDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/startOfDate.md): Return the start of the specified date `unit` for a given ISO 8601 date string. - [startOfDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/startOfDateTime.md): Return the start of the specified date-time `unit` for a given ISO 8601 datetime string. - [startOfQuarterForDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/startOfQuarterForDate.md): Return the first day of the quarter for a given ISO date. - [startOfQuarterForDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/startOfQuarterForDateTime.md): Return the start of the quarter for a given ISO datetime. - [startOfTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/startOfTime.md): Return the start of the specified time `unit` for a given ISO 8601 time string. - [StartOfTimeUnit](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/StartOfTimeUnit.md): The StartOfTimeUnit type. - [startOfUnit](https://gmt-dox.northguild.workers.dev/reference/plain/interval/startOfUnit.md): Return the start of `unit` for a `Temporal.PlainDateTime`, for every DateTimeUnit. - [subtractBusinessDays](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/subtractBusinessDays.md): Return a PlainDate ISO string with `amount` business days subtracted from `value`. - [subtractDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/subtractDate.md): Return a PlainDate ISO string with `units` subtracted from `value`. - [subtractDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/subtractDateTime.md): Return a PlainDateTime ISO string with `units` subtracted from `value`. - [subtractTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/subtractTime.md): Return a PlainTime ISO string with `units` subtracted from `value`. - [weekOfYearForDate](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/weekOfYearForDate.md): Return the ISO week number for a given ISO 8601 date string. - [weekOfYearForDateTime](https://gmt-dox.northguild.workers.dev/reference/plain/calculate/weekOfYearForDateTime.md): Return the ISO week number for a given ISO 8601 datetime string. ## Reference — regex - [calendarDate](https://gmt-dox.northguild.workers.dev/reference/regex/calendar-date/calendarDate.md): GMT's own calendar-annotated PlainDate string: the calendar-native year/month/day - [calendarZonedDateTime](https://gmt-dox.northguild.workers.dev/reference/regex/calendar-zoned-date-time/calendarZonedDateTime.md): GMT's own calendar-annotated ZonedDateTime string — the zoned sibling of `calendarDate` - [day](https://gmt-dox.northguild.workers.dev/reference/regex/date/day.md) - [fractionalSecond](https://gmt-dox.northguild.workers.dev/reference/regex/time/fractionalSecond.md): regex patterns exported for usage - [hour](https://gmt-dox.northguild.workers.dev/reference/regex/time/hour.md): regex patterns exported for usage - [httpDate](https://gmt-dox.northguild.workers.dev/reference/regex/http-date/httpDate.md): RFC 7231 §7.1.1.1 IMF-fixdate — the only form GMT's `formatHttp` emits, and - [leapSecond](https://gmt-dox.northguild.workers.dev/reference/regex/leap-second/leapSecond.md): ISO 8601 leap second pattern (second = 60) - [millisecond](https://gmt-dox.northguild.workers.dev/reference/regex/time/millisecond.md): regex patterns exported for usage - [minute](https://gmt-dox.northguild.workers.dev/reference/regex/time/minute.md): regex patterns exported for usage - [month](https://gmt-dox.northguild.workers.dev/reference/regex/date/month.md) - [plainDate](https://gmt-dox.northguild.workers.dev/reference/regex/date/plainDate.md): ISO 8601 calendar date (extended): YYYY-MM-DD or ±YYYYYY-MM-DD - [plainDateTime](https://gmt-dox.northguild.workers.dev/reference/regex/date-time/plainDateTime.md): ISO 8601 local date-time (extended): T