# @northguild/gmt/plain > Dates, times and date-times with no time zone, as ISO 8601 strings: arithmetic, comparison, formatting, parsing and calendars. Back to the [root llms.txt](https://northguild.dev/gmt/llms.txt). ## calculate - [addBusinessDays](https://northguild.dev/gmt/reference/plain/calculate/addBusinessDays.md): Return a PlainDate ISO string with `amount` working days added to `value`. - [addDate](https://northguild.dev/gmt/reference/plain/calculate/addDate.md): Return a PlainDate ISO string with `amount` added according to `units`. - [addDateTime](https://northguild.dev/gmt/reference/plain/calculate/addDateTime.md): Return a PlainDateTime ISO string with `units` added to `value`. - [addTime](https://northguild.dev/gmt/reference/plain/calculate/addTime.md): Return a PlainTime ISO string with `units` added to `value`. - [addYearMonth](https://northguild.dev/gmt/reference/plain/calculate/addYearMonth.md): Return a year-month string moved forward by `units`. - [clampDate](https://northguild.dev/gmt/reference/plain/calculate/clampDate.md): Restrict `value` to the range [`min`, `max`]. - [closestDateTo](https://northguild.dev/gmt/reference/plain/calculate/closestDateTo.md): Return the candidate date nearest to `target` by calendar distance. - [cycleDate](https://northguild.dev/gmt/reference/plain/calculate/cycleDate.md): Return a PlainDate ISO string with `field` cycled by `amount`, wrapping at that field's own min/max instead of carrying into the next larger field. - [cycleDateTime](https://northguild.dev/gmt/reference/plain/calculate/cycleDateTime.md): Return a PlainDateTime ISO string with `field` cycled by `amount`, wrapping at that field's own min/max instead of carrying into the next larger field. - [cycleTime](https://northguild.dev/gmt/reference/plain/calculate/cycleTime.md): Return a PlainTime ISO string with `field` cycled by `amount`, wrapping at that field's own min/max instead of carrying into the next larger field (`hour` 23 `+1` wraps to `0`, it never changes a date — `cycleTime` has no date component to carry into in the first place). - [diffDate](https://northguild.dev/gmt/reference/plain/calculate/diffDate.md): Return the difference between two PlainDate values using the provided `unit`. - [diffDateAsDuration](https://northguild.dev/gmt/reference/plain/calculate/diffDateAsDuration.md): Return the difference between two PlainDate values as an ISO 8601 duration string, bridging to the `duration` namespace (see `parseDuration`, `normalizeDuration`). - [diffDateTime](https://northguild.dev/gmt/reference/plain/calculate/diffDateTime.md): Return the difference between two PlainDateTime values in the requested unit. - [diffDateTimeAsDuration](https://northguild.dev/gmt/reference/plain/calculate/diffDateTimeAsDuration.md): Return the difference between two PlainDateTime values as an ISO 8601 duration string, bridging to the `duration` namespace (see `parseDuration`, `normalizeDuration`). - [diffTime](https://northguild.dev/gmt/reference/plain/calculate/diffTime.md): Return the difference between two PlainTime values in the requested unit. - [diffYearMonth](https://northguild.dev/gmt/reference/plain/calculate/diffYearMonth.md): Return the whole years or months from year-month `a` to year-month `b`. - [endOfDate](https://northguild.dev/gmt/reference/plain/calculate/endOfDate.md): Return the end of the specified date `unit` for a given ISO 8601 date string. - [endOfDateTime](https://northguild.dev/gmt/reference/plain/calculate/endOfDateTime.md): Return the end of the specified date-time `unit` for a given ISO 8601 datetime string. - [endOfQuarterForDate](https://northguild.dev/gmt/reference/plain/calculate/endOfQuarterForDate.md): Return the last day of the quarter for a given ISO date. - [endOfQuarterForDateTime](https://northguild.dev/gmt/reference/plain/calculate/endOfQuarterForDateTime.md): Return the end of the quarter for a given ISO datetime. - [endOfTime](https://northguild.dev/gmt/reference/plain/calculate/endOfTime.md): Return the end of the specified time `unit` for a given ISO 8601 time string. - [endOfYearMonth](https://northguild.dev/gmt/reference/plain/calculate/endOfYearMonth.md): The last day of a year-month, as an ISO date. - [getDayOfYear](https://northguild.dev/gmt/reference/plain/calculate/getDayOfYear.md): Return the ordinal day-of-year (1-based) for `value`. - [getDaysInMonth](https://northguild.dev/gmt/reference/plain/calculate/getDaysInMonth.md): Return the number of days in the month containing `value`. - [getDaysInYear](https://northguild.dev/gmt/reference/plain/calculate/getDaysInYear.md): Return the number of days in the calendar year containing `value`. - [getDaysInYearMonth](https://northguild.dev/gmt/reference/plain/calculate/getDaysInYearMonth.md): Return the number of days in a year-month. - [getLargestDateDurationUnit](https://northguild.dev/gmt/reference/plain/calculate/getLargestDateDurationUnit.md): Return the largest DateDurationUnit from the provided array. - [getLargestDateTimeDurationUnit](https://northguild.dev/gmt/reference/plain/calculate/getLargestDateTimeDurationUnit.md): Return the largest DateTimeDurationUnit from the provided array. - [getLargestTimeDurationUnit](https://northguild.dev/gmt/reference/plain/calculate/getLargestTimeDurationUnit.md): Return the largest TimeDurationUnit from the provided array. - [getLocaleDayOfWeek](https://northguild.dev/gmt/reference/plain/calculate/getLocaleDayOfWeek.md): Return the locale-relative day-of-week index for `value`. - [getLocaleEndOfWeek](https://northguild.dev/gmt/reference/plain/calculate/getLocaleEndOfWeek.md): 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). - [getLocaleStartOfWeek](https://northguild.dev/gmt/reference/plain/calculate/getLocaleStartOfWeek.md): Return the start of the week containing `value`, using `locale`'s first day of week (e.g. fr-FR: Monday, ja-JP: Sunday). - [getLocaleWeekYear](https://northguild.dev/gmt/reference/plain/calculate/getLocaleWeekYear.md): Return the locale-relative week-numbering year `value` belongs to, from `locale`'s first day of week and a minimal-days-in-first-week rule. - [getQuarterForDate](https://northguild.dev/gmt/reference/plain/calculate/getQuarterForDate.md): Return the quarter of the year (1-4) for a given ISO date. - [getQuarterForDateTime](https://northguild.dev/gmt/reference/plain/calculate/getQuarterForDateTime.md): Return the quarter of the year (1-4) for a given ISO datetime. - [getWeekNumber](https://northguild.dev/gmt/reference/plain/calculate/getWeekNumber.md): Calculate the week number based on configurable week start day. - [getWeekOfMonth](https://northguild.dev/gmt/reference/plain/calculate/getWeekOfMonth.md): Return the 1-based row `value` falls on within its month's calendar grid, using `locale`'s first day of week. - [getWeeksInLocaleWeekYear](https://northguild.dev/gmt/reference/plain/calculate/getWeeksInLocaleWeekYear.md): Return the number of weeks (52 or 53) in the locale week-numbering year containing `value`, from `locale`'s first day of week and a minimal-days-in-first-week rule. - [getWeeksInMonth](https://northguild.dev/gmt/reference/plain/calculate/getWeeksInMonth.md): Return the number of calendar-grid rows (4, 5, or 6) `value`'s month spans, using `locale`'s first day of week. - [getWeeksInYear](https://northguild.dev/gmt/reference/plain/calculate/getWeeksInYear.md): Return the number of ISO weeks (52 or 53) in the ISO week-numbering year containing `value`. - [getWeekYear](https://northguild.dev/gmt/reference/plain/calculate/getWeekYear.md): Return the ISO 8601 week-numbering year `value` belongs to. - [maxDate](https://northguild.dev/gmt/reference/plain/calculate/maxDate.md): Return the latest (maximum) of the given PlainDate values. - [maxDateTime](https://northguild.dev/gmt/reference/plain/calculate/maxDateTime.md): Return the latest (maximum) of the given PlainDateTime values. - [maxTime](https://northguild.dev/gmt/reference/plain/calculate/maxTime.md): Return the latest (maximum) of the given PlainTime values. - [minDate](https://northguild.dev/gmt/reference/plain/calculate/minDate.md): Return the earliest (minimum) of the given PlainDate values. - [minDateTime](https://northguild.dev/gmt/reference/plain/calculate/minDateTime.md): Return the earliest (minimum) of the given PlainDateTime values. - [minTime](https://northguild.dev/gmt/reference/plain/calculate/minTime.md): Return the earliest (minimum) of the given PlainTime values. - [nextWeekday](https://northguild.dev/gmt/reference/plain/calculate/nextWeekday.md): Return a PlainDate ISO string for the next occurrence of `dayOfWeek` after `value` (or on it, with `inclusive: true`). - [previousWeekday](https://northguild.dev/gmt/reference/plain/calculate/previousWeekday.md): Return a PlainDate ISO string for the previous occurrence of `dayOfWeek` before `value` (or on it, with `inclusive: true`). - [roundDate](https://northguild.dev/gmt/reference/plain/calculate/roundDate.md): Round an ISO 8601 date string to the specified date unit. - [roundDateTime](https://northguild.dev/gmt/reference/plain/calculate/roundDateTime.md): Round an ISO 8601 datetime string to the specified date-time unit. - [roundTime](https://northguild.dev/gmt/reference/plain/calculate/roundTime.md): Round an ISO 8601 time string to the specified time unit. - [setDate](https://northguild.dev/gmt/reference/plain/calculate/setDate.md): Return a PlainDate ISO string with the given `fields` set on `value`. - [setDateTime](https://northguild.dev/gmt/reference/plain/calculate/setDateTime.md): Return a PlainDateTime ISO string with the given `fields` set on `value`. - [setTime](https://northguild.dev/gmt/reference/plain/calculate/setTime.md): Return a PlainTime ISO string with the given `fields` set on `value`. - [sortDates](https://northguild.dev/gmt/reference/plain/calculate/sortDates.md): Sort an array of PlainDate values in ascending or descending order. - [sortDateTimes](https://northguild.dev/gmt/reference/plain/calculate/sortDateTimes.md): Sort an array of PlainDateTime values in ascending or descending order. - [sortTimes](https://northguild.dev/gmt/reference/plain/calculate/sortTimes.md): Sort an array of PlainTime values in ascending or descending order. - [startOfDate](https://northguild.dev/gmt/reference/plain/calculate/startOfDate.md): Return the start of the specified date `unit` for a given ISO 8601 date string. - [startOfDateTime](https://northguild.dev/gmt/reference/plain/calculate/startOfDateTime.md): Return the start of the specified date-time `unit` for a given ISO 8601 datetime string. - [startOfQuarterForDate](https://northguild.dev/gmt/reference/plain/calculate/startOfQuarterForDate.md): Return the first day of the quarter for a given ISO date. - [startOfQuarterForDateTime](https://northguild.dev/gmt/reference/plain/calculate/startOfQuarterForDateTime.md): Return the start of the quarter for a given ISO datetime. - [startOfTime](https://northguild.dev/gmt/reference/plain/calculate/startOfTime.md): Return the start of the specified time `unit` for a given ISO 8601 time string. - [startOfYearMonth](https://northguild.dev/gmt/reference/plain/calculate/startOfYearMonth.md): The first day of a year-month, as an ISO date. - [subtractBusinessDays](https://northguild.dev/gmt/reference/plain/calculate/subtractBusinessDays.md): Return a PlainDate ISO string with `amount` working days subtracted from `value`. - [subtractDate](https://northguild.dev/gmt/reference/plain/calculate/subtractDate.md): Return a PlainDate ISO string with `units` subtracted from `value`. - [subtractDateTime](https://northguild.dev/gmt/reference/plain/calculate/subtractDateTime.md): Return a PlainDateTime ISO string with `units` subtracted from `value`. - [subtractTime](https://northguild.dev/gmt/reference/plain/calculate/subtractTime.md): Return a PlainTime ISO string with `units` subtracted from `value`. - [subtractYearMonth](https://northguild.dev/gmt/reference/plain/calculate/subtractYearMonth.md): Return a year-month string moved backward by `units`. - [weekOfYearForDate](https://northguild.dev/gmt/reference/plain/calculate/weekOfYearForDate.md): Return the ISO week number for a given ISO 8601 date string. - [weekOfYearForDateTime](https://northguild.dev/gmt/reference/plain/calculate/weekOfYearForDateTime.md): Return the ISO week number for a given ISO 8601 datetime string. ## chop - [chopDate](https://northguild.dev/gmt/reference/plain/chop/chopDate.md): Return the PlainTime portion extracted from an ISO PlainDateTime string. - [chopMilliseconds](https://northguild.dev/gmt/reference/plain/chop/chopMilliseconds.md): Return a string with millisecond precision removed from a PlainDateTime or PlainTime value. - [chopSeconds](https://northguild.dev/gmt/reference/plain/chop/chopSeconds.md): Return an ISO string with second precision removed from a PlainDateTime or PlainTime value. - [chopTime](https://northguild.dev/gmt/reference/plain/chop/chopTime.md): Return the PlainDate portion extracted from an ISO PlainDateTime string. ## compare - [areDatesEqual](https://northguild.dev/gmt/reference/plain/compare/areDatesEqual.md): Compare two ISO date-like strings for equality, ignoring time components. - [areDatesEqualBy](https://northguild.dev/gmt/reference/plain/compare/areDatesEqualBy.md): Compare two ISO date strings for equality at a given calendar unit. - [areDateTimesEqual](https://northguild.dev/gmt/reference/plain/compare/areDateTimesEqual.md): Return true if two PlainDateTime ISO strings represent the same instant of local date/time components. - [areDateTimesEqualBy](https://northguild.dev/gmt/reference/plain/compare/areDateTimesEqualBy.md): Compare two ISO datetime strings for equality at a given unit. - [areMonthDaysEqual](https://northguild.dev/gmt/reference/plain/compare/areMonthDaysEqual.md): Check whether two month-day strings (`--MM-DD`, or `MM-DD`) name the same day of the year. - [areTimesEqual](https://northguild.dev/gmt/reference/plain/compare/areTimesEqual.md): Return true if two PlainTime ISO strings represent the same time components. - [areYearMonthsEqual](https://northguild.dev/gmt/reference/plain/compare/areYearMonthsEqual.md): Check whether two year-month strings (`YYYY-MM`) name the same year and month. - [compareMonthDays](https://northguild.dev/gmt/reference/plain/compare/compareMonthDays.md): Compare two month-day strings (`--MM-DD`, or `MM-DD`) in calendar order: month first, then day. - [compareYearMonths](https://northguild.dev/gmt/reference/plain/compare/compareYearMonths.md): Compare two year-month strings (`YYYY-MM`) in calendar order: year first, then month. - [isAfterDate](https://northguild.dev/gmt/reference/plain/compare/isAfterDate.md): Return true if the first ISO PlainDate string represents a date after the second. - [isAfterDateTime](https://northguild.dev/gmt/reference/plain/compare/isAfterDateTime.md): Return true when `value1` is strictly after `value2` for PlainDateTime values. - [isAfterTime](https://northguild.dev/gmt/reference/plain/compare/isAfterTime.md): Return true when `value1` is strictly after `value2` for PlainTime values. - [isBeforeDate](https://northguild.dev/gmt/reference/plain/compare/isBeforeDate.md): Return true when `value1` is strictly before `value2` for PlainDate values. - [isBeforeDateTime](https://northguild.dev/gmt/reference/plain/compare/isBeforeDateTime.md): Return true when `value1` is strictly before `value2` for PlainDateTime values. - [isBeforeTime](https://northguild.dev/gmt/reference/plain/compare/isBeforeTime.md): Return true when `value1` is strictly before `value2` for PlainTime values. - [isBetweenDate](https://northguild.dev/gmt/reference/plain/compare/isBetweenDate.md): Return true when `date` is between `start` and `end` (inclusive by default). - [isBetweenDateTime](https://northguild.dev/gmt/reference/plain/compare/isBetweenDateTime.md): Return true when `dateTime` is between `start` and `end` (inclusive by default). - [isBetweenTime](https://northguild.dev/gmt/reference/plain/compare/isBetweenTime.md): Return true when `time` is between `start` and `end` (inclusive by default). - [isBusinessDay](https://northguild.dev/gmt/reference/plain/compare/isBusinessDay.md): Return true when `value` is a working day in `calendar`. - [isFuture](https://northguild.dev/gmt/reference/plain/compare/isFuture.md): Return true when `value` is strictly after today, per the system clock and system timeZone. - [isPast](https://northguild.dev/gmt/reference/plain/compare/isPast.md): Return true when `value` is strictly before today, per the system clock and system timeZone. - [isRelativeDay](https://northguild.dev/gmt/reference/plain/compare/isRelativeDay.md): Return true when `value` falls `offsetDays` days from today, per the system clock and system timeZone. - [isThisUnit](https://northguild.dev/gmt/reference/plain/compare/isThisUnit.md): Return true when `value` falls in the same `unit` as today, per the system clock and system timeZone. - [isWeekend](https://northguild.dev/gmt/reference/plain/compare/isWeekend.md): Return true when `value` falls on a weekend day for `locale`. ## convert - [convertDateToCalendar](https://northguild.dev/gmt/reference/plain/convert/convertDateToCalendar.md): Express a PlainDate in a calendar system: the RFC 9557 string `Temporal.PlainDate#toString()` writes for that date in that calendar. - [monthDayToDate](https://northguild.dev/gmt/reference/plain/convert/monthDayToDate.md): The ISO date of a month-day in a given year. ## format - [formatCalendar](https://northguild.dev/gmt/reference/plain/format/formatCalendar.md): Format a plain date-time as a relative day label plus time-of-day, e.g. "Tomorrow at 2:30 PM". The `formatRelativeDateTime` family does not cover this: it renders "in 1 day", an elapsed-time phrase, not a day label + clock time. - [formatDate](https://northguild.dev/gmt/reference/plain/format/formatDate.md): Return a localized string for a PlainDate ISO input using Intl options. - [formatDateRange](https://northguild.dev/gmt/reference/plain/format/formatDateRange.md): Format a plain date range using the Temporal Intl.DateTimeFormat formatRange API. - [formatDateTime](https://northguild.dev/gmt/reference/plain/format/formatDateTime.md): Return a localized string for a PlainDateTime ISO input using Intl options. - [formatDateTimeRange](https://northguild.dev/gmt/reference/plain/format/formatDateTimeRange.md): Format a plain datetime range using the Temporal Intl.DateTimeFormat formatRange API. - [formatDateTimeToParts](https://northguild.dev/gmt/reference/plain/format/formatDateTimeToParts.md): Return the locale-formatted parts of a PlainDateTime. - [formatDateToParts](https://northguild.dev/gmt/reference/plain/format/formatDateToParts.md): Return the locale-formatted parts of a PlainDate. - [formatMonthDay](https://northguild.dev/gmt/reference/plain/format/formatMonthDay.md): Return a localized string for a month-day (`--MM-DD` or `MM-DD`) using Intl options. - [formatRelativeDate](https://northguild.dev/gmt/reference/plain/format/formatRelativeDate.md): Format the relative time between a plain date and a reference date. - [formatRelativeDateTime](https://northguild.dev/gmt/reference/plain/format/formatRelativeDateTime.md): Format the relative time between a plain date-time and a reference date-time. - [formatRelativeTime](https://northguild.dev/gmt/reference/plain/format/formatRelativeTime.md): Format the relative time between a plain time and a reference time. - [formatSqlDateTime](https://northguild.dev/gmt/reference/plain/format/formatSqlDateTime.md): Format a plain ISO 8601 datetime string as a SQL timestamp literal without a time zone — the `YYYY-MM-DD HH:MM:SS[.fff]` form of standard SQL `TIMESTAMP` and MySQL/SQLite `DATETIME` columns. - [formatTime](https://northguild.dev/gmt/reference/plain/format/formatTime.md): Return a localized string for a PlainTime ISO input using Intl options. - [formatYearMonth](https://northguild.dev/gmt/reference/plain/format/formatYearMonth.md): Return a localized string for a year-month (`YYYY-MM`) using Intl options. ## get - [getDateAgo](https://northguild.dev/gmt/reference/plain/get/getDateAgo.md): Return the PlainDate before today, as an ISO string, counted from the current time. - [getDateIn](https://northguild.dev/gmt/reference/plain/get/getDateIn.md): Return the PlainDate after today, as an ISO string, counted from the current time. - [getDateTimeAgo](https://northguild.dev/gmt/reference/plain/get/getDateTimeAgo.md): Return the PlainDateTime before now, as an ISO string, counted from the current time. - [getDateTimeIn](https://northguild.dev/gmt/reference/plain/get/getDateTimeIn.md): Return the PlainDateTime after now, as an ISO string, counted from the current time. - [getDay](https://northguild.dev/gmt/reference/plain/get/getDay.md): Return the current day of month using the system timeZone. - [getDayOfWeek](https://northguild.dev/gmt/reference/plain/get/getDayOfWeek.md): Return the current ISO day of the week as a number in the system timeZone. - [getHour](https://northguild.dev/gmt/reference/plain/get/getHour.md): Return the current hour using the system timeZone. - [getMicrosecond](https://northguild.dev/gmt/reference/plain/get/getMicrosecond.md): Return the current microsecond using the system timeZone. - [getMillisecond](https://northguild.dev/gmt/reference/plain/get/getMillisecond.md): Return the current millisecond using the system timeZone. - [getMinute](https://northguild.dev/gmt/reference/plain/get/getMinute.md): Return the current minute using the system timeZone. - [getMonth](https://northguild.dev/gmt/reference/plain/get/getMonth.md): Return the current month using the system timeZone. - [getNanosecond](https://northguild.dev/gmt/reference/plain/get/getNanosecond.md): Return the current nanosecond using the system timeZone. - [getNow](https://northguild.dev/gmt/reference/plain/get/getNow.md): Return the current local PlainDateTime as an ISO string using the system timeZone. - [getNowUnit](https://northguild.dev/gmt/reference/plain/get/getNowUnit.md): Return the requested current unit value using the system timeZone. - [getSecond](https://northguild.dev/gmt/reference/plain/get/getSecond.md): Return the current second using the system timeZone. - [getTimeAgo](https://northguild.dev/gmt/reference/plain/get/getTimeAgo.md): Return the PlainTime before now, as an ISO string, counted from the current time. - [getTimeIn](https://northguild.dev/gmt/reference/plain/get/getTimeIn.md): Return the PlainTime after now, as an ISO string, counted from the current time. - [getToday](https://northguild.dev/gmt/reference/plain/get/getToday.md): Return the current PlainDate as an ISO string in the system timeZone. - [getWeekOfYear](https://northguild.dev/gmt/reference/plain/get/getWeekOfYear.md): Get the ISO week number of the current date. - [getYear](https://northguild.dev/gmt/reference/plain/get/getYear.md): Return the current year as a zero-padded string in the system timeZone. ## interval - [intervalAbutsDate](https://northguild.dev/gmt/reference/plain/interval/intervalAbutsDate.md): Return true when two half-open date intervals `[aStart, aEnd)` and `[bStart, bEnd)` are exactly adjacent — one ends where the other starts, so they share nothing and leave no gap. - [intervalAbutsDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalAbutsDateTime.md): Return true when two half-open datetime intervals `[aStart, aEnd)` and `[bStart, bEnd)` are exactly adjacent — one ends where the other starts, so they share nothing and leave no gap. - [intervalAbutsTime](https://northguild.dev/gmt/reference/plain/interval/intervalAbutsTime.md): Return true when two half-open time intervals `[aStart, aEnd)` and `[bStart, bEnd)` are exactly adjacent — one ends where the other starts, so they share nothing and leave no gap. - [intervalContainsDate](https://northguild.dev/gmt/reference/plain/interval/intervalContainsDate.md): Return true when `pointOrStart` lies in the half-open interval `[intervalStart, intervalEnd)` (3-arg), or when the inner interval `[innerStart, innerEnd)` lies within it (4-arg). - [intervalContainsDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalContainsDateTime.md): Return true when `pointOrStart` lies in the half-open interval `[intervalStart, intervalEnd)` (3-arg), or when the inner interval `[innerStart, innerEnd)` lies within it (4-arg). - [intervalContainsTime](https://northguild.dev/gmt/reference/plain/interval/intervalContainsTime.md): Return true when `pointOrStart` lies in the half-open interval `[intervalStart, intervalEnd)` (3-arg), or when the inner interval `[innerStart, innerEnd)` lies within it (4-arg). - [intervalCountDate](https://northguild.dev/gmt/reference/plain/interval/intervalCountDate.md): Count how many `unit` boundaries a date interval crosses. - [intervalCountDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalCountDateTime.md): Count how many `unit` boundaries a date-time interval crosses. - [intervalCountTime](https://northguild.dev/gmt/reference/plain/interval/intervalCountTime.md): Count how many `unit` boundaries a time interval crosses. - [intervalDifferenceDate](https://northguild.dev/gmt/reference/plain/interval/intervalDifferenceDate.md): Return the portion(s) of interval A not covered by interval B. - [intervalDifferenceDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalDifferenceDateTime.md): Return the portion(s) of interval A not covered by interval B. - [intervalDifferenceTime](https://northguild.dev/gmt/reference/plain/interval/intervalDifferenceTime.md): Return the portion(s) of interval A not covered by interval B. - [intervalDivideEquallyDate](https://northguild.dev/gmt/reference/plain/interval/intervalDivideEquallyDate.md): Split a date interval into `n` equal-length sub-intervals. - [intervalDivideEquallyDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalDivideEquallyDateTime.md): Split a datetime interval into `n` equal-length sub-intervals. - [intervalDivideEquallyTime](https://northguild.dev/gmt/reference/plain/interval/intervalDivideEquallyTime.md): Split a time interval into `n` equal-length sub-intervals. - [intervalEngulfsDate](https://northguild.dev/gmt/reference/plain/interval/intervalEngulfsDate.md): Return true when the half-open interval B `[bStart, bEnd)` lies within the half-open interval A `[aStart, aEnd)` — every day of B is also in A. - [intervalEngulfsDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalEngulfsDateTime.md): Return true when the half-open interval B `[bStart, bEnd)` lies within the half-open interval A `[aStart, aEnd)` — every moment of B is also in A. - [intervalEngulfsTime](https://northguild.dev/gmt/reference/plain/interval/intervalEngulfsTime.md): Return true when the half-open interval B `[bStart, bEnd)` lies within the half-open interval A `[aStart, aEnd)` — every clock time of B is also in A. - [intervalFromDurationDate](https://northguild.dev/gmt/reference/plain/interval/intervalFromDurationDate.md): Construct a date interval from a single point plus an ISO 8601 duration, anchored at either end. - [intervalFromDurationDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalFromDurationDateTime.md): Construct a datetime interval from a single point plus an ISO 8601 duration, anchored at either end. - [intervalFromDurationTime](https://northguild.dev/gmt/reference/plain/interval/intervalFromDurationTime.md): Construct a time interval from a single point plus an ISO 8601 duration, anchored at either end. - [intervalIntersectionDate](https://northguild.dev/gmt/reference/plain/interval/intervalIntersectionDate.md): Return the overlapping span of two date intervals, or null when they do not overlap. - [intervalIntersectionDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalIntersectionDateTime.md): Return the overlapping span of two datetime intervals, or null when they do not overlap. - [intervalIntersectionTime](https://northguild.dev/gmt/reference/plain/interval/intervalIntersectionTime.md): Return the overlapping span of two time intervals, or null when they do not overlap. - [intervalLengthDate](https://northguild.dev/gmt/reference/plain/interval/intervalLengthDate.md): Return the exact length of a date interval in `unit`, as a real (possibly fractional) number. - [intervalLengthDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalLengthDateTime.md): Return the exact length of a datetime interval in `unit`, as a real (possibly fractional) number. - [intervalLengthTime](https://northguild.dev/gmt/reference/plain/interval/intervalLengthTime.md): Return the exact length of a time interval in `unit`, as a real (possibly fractional) number. - [intervalOverlappingDaysDate](https://northguild.dev/gmt/reference/plain/interval/intervalOverlappingDaysDate.md): Return how many distinct calendar dates two date intervals share. - [intervalOverlappingDaysDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalOverlappingDaysDateTime.md): Return how many distinct calendar dates two datetime intervals share. - [intervalsOverlapDate](https://northguild.dev/gmt/reference/plain/interval/intervalsOverlapDate.md): Return true when the half-open date intervals `[aStart, aEnd)` and `[bStart, bEnd)` share at least one day. - [intervalsOverlapDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalsOverlapDateTime.md): Return true when the half-open datetime intervals `[aStart, aEnd)` and `[bStart, bEnd)` share at least one moment. - [intervalsOverlapTime](https://northguild.dev/gmt/reference/plain/interval/intervalsOverlapTime.md): Return true when the half-open time intervals `[aStart, aEnd)` and `[bStart, bEnd)` share at least one clock time. - [intervalSplitAtDate](https://northguild.dev/gmt/reference/plain/interval/intervalSplitAtDate.md): Split a date interval at arbitrary `points`, producing consecutive sub-intervals. - [intervalSplitAtDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalSplitAtDateTime.md): Split a datetime interval at arbitrary `points`, producing consecutive sub-intervals. - [intervalSplitAtTime](https://northguild.dev/gmt/reference/plain/interval/intervalSplitAtTime.md): Split a time interval at arbitrary `points`, producing consecutive sub-intervals. - [intervalUnionDate](https://northguild.dev/gmt/reference/plain/interval/intervalUnionDate.md): Return the combined span of two date intervals, or null when they are disjoint. - [intervalUnionDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalUnionDateTime.md): Return the combined span of two datetime intervals, or null when they are disjoint. - [intervalUnionTime](https://northguild.dev/gmt/reference/plain/interval/intervalUnionTime.md): Return the combined span of two time intervals, or null when they are disjoint. - [intervalXorAllDate](https://northguild.dev/gmt/reference/plain/interval/intervalXorAllDate.md): Return the symmetric difference across a list of date intervals — the set of dates covered by an odd number of the input intervals. - [intervalXorAllDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalXorAllDateTime.md): Return the symmetric difference across a list of datetime intervals — the set of instants covered by an odd number of the input intervals. - [intervalXorAllTime](https://northguild.dev/gmt/reference/plain/interval/intervalXorAllTime.md): Return the symmetric difference across a list of time intervals — the set of clock times covered by an odd number of the input intervals. - [intervalXorDate](https://northguild.dev/gmt/reference/plain/interval/intervalXorDate.md): Return the symmetric difference of two date intervals — time covered by exactly one interval. - [intervalXorDateTime](https://northguild.dev/gmt/reference/plain/interval/intervalXorDateTime.md): Return the symmetric difference of two datetime intervals — time covered by exactly one interval. - [intervalXorTime](https://northguild.dev/gmt/reference/plain/interval/intervalXorTime.md): Return the symmetric difference of two time intervals — time covered by exactly one interval. - [isValidDateInterval](https://northguild.dev/gmt/reference/plain/interval/isValidDateInterval.md): Return true if `start` and `end` form a valid date interval — both parseable as ISO PlainDate strings and `start <= end`. - [isValidDateTimeInterval](https://northguild.dev/gmt/reference/plain/interval/isValidDateTimeInterval.md): Return true if `start` and `end` form a valid datetime interval — both parseable as ISO PlainDateTime strings and `start <= end`. - [isValidTimeInterval](https://northguild.dev/gmt/reference/plain/interval/isValidTimeInterval.md): Return true if `start` and `end` form a valid time interval — both parseable as ISO PlainTime strings and `start <= end`. - [mergeIntervalsDate](https://northguild.dev/gmt/reference/plain/interval/mergeIntervalsDate.md): Collapse a list of date intervals into the minimum set of non-overlapping intervals. - [mergeIntervalsDateTime](https://northguild.dev/gmt/reference/plain/interval/mergeIntervalsDateTime.md): Collapse a list of datetime intervals into the minimum set of non-overlapping intervals. - [mergeIntervalsTime](https://northguild.dev/gmt/reference/plain/interval/mergeIntervalsTime.md): Collapse a list of time intervals into the minimum set of non-overlapping intervals. - [splitIntervalByUnitDate](https://northguild.dev/gmt/reference/plain/interval/splitIntervalByUnitDate.md): Split a date interval into sub-intervals of `amount × unit`. - [splitIntervalByUnitDateTime](https://northguild.dev/gmt/reference/plain/interval/splitIntervalByUnitDateTime.md): Split a date-time interval into sub-intervals of `amount × unit`. - [splitIntervalByUnitTime](https://northguild.dev/gmt/reference/plain/interval/splitIntervalByUnitTime.md): Split a time interval into sub-intervals of `amount × unit`. ## locale - [getLocaleEraNames](https://northguild.dev/gmt/reference/plain/locale/getLocaleEraNames.md): Return a locale's Gregorian era names as [BCE-label, CE-label]. - [getLocaleMeridiems](https://northguild.dev/gmt/reference/plain/locale/getLocaleMeridiems.md): Return a locale's AM/PM (day-period) labels as `[AM-label, PM-label]`. - [getLocaleMonthNames](https://northguild.dev/gmt/reference/plain/locale/getLocaleMonthNames.md): Return the 12 Gregorian calendar-month names for a locale, in calendar order (January first, December last — not alphabetical). - [getLocaleWeekdayNames](https://northguild.dev/gmt/reference/plain/locale/getLocaleWeekdayNames.md): Return the 7 weekday names for a locale, ordered starting from the locale's first day of the week. - [LocaleNameStyle](https://northguild.dev/gmt/reference/types/LocaleNameStyle.md): The calendar-name styles supported by GMT's locale name lookups. ## map - [mapDatesInRange](https://northguild.dev/gmt/reference/plain/map/mapDatesInRange.md): Return an array of ISO PlainDate strings between `startDate` and `endDate` inclusive. - [mapDaysInMonth](https://northguild.dev/gmt/reference/plain/map/mapDaysInMonth.md): Return an array of ISO PlainDate strings for every day in the given year-month. ## parse - [parseDateTimeWithPattern](https://northguild.dev/gmt/reference/plain/parse/parseDateTimeWithPattern.md): Parse a datetime string against a caller-supplied token pattern (e.g. `"dd/MM/yyyy HH:mm:ss"`, `"dd-MMM-yyyy h:mm a"`) and return it as an ISO `PlainDateTime` string. - [parseDateWithPattern](https://northguild.dev/gmt/reference/plain/parse/parseDateWithPattern.md): Parse a date string against a caller-supplied token pattern (e.g. `"dd/MM/yyyy"`, `"dd-MMM-yyyy"`) and return it as an ISO `PlainDate` string. - [parseDayFromDate](https://northguild.dev/gmt/reference/plain/parse/parseDayFromDate.md): Return the day of month (1-31) for a given ISO 8601 date string. - [parseDayFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseDayFromDateTime.md): Return the day of month (1-31) for a given ISO 8601 datetime string. - [parseDayOfWeekFromDate](https://northguild.dev/gmt/reference/plain/parse/parseDayOfWeekFromDate.md): Return the day of week (1-7) for a given ISO 8601 date string. - [parseDayOfWeekFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseDayOfWeekFromDateTime.md): Return the day of week (1-7) for a given ISO 8601 datetime string. - [parseHourFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseHourFromDateTime.md): Return the hour (00-23) for a given ISO 8601 datetime string. - [parseHourFromTime](https://northguild.dev/gmt/reference/plain/parse/parseHourFromTime.md): Return the hour (0-23) for a given ISO 8601 time string. - [parseMicrosecondFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseMicrosecondFromDateTime.md): Return the microsecond (0-999) for a given ISO 8601 datetime string. - [parseMicrosecondFromTime](https://northguild.dev/gmt/reference/plain/parse/parseMicrosecondFromTime.md): Return the microsecond (0-999) for a given ISO 8601 time string. - [parseMillisecondFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseMillisecondFromDateTime.md): Return the millisecond (0-999) for a given ISO 8601 datetime string. - [parseMillisecondFromTime](https://northguild.dev/gmt/reference/plain/parse/parseMillisecondFromTime.md): Return the millisecond (0-999) for a given ISO 8601 time string. - [parseMinuteFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseMinuteFromDateTime.md): Return the minute (0-59) for a given ISO 8601 datetime string. - [parseMinuteFromTime](https://northguild.dev/gmt/reference/plain/parse/parseMinuteFromTime.md): Return the minute (0-59) for a given ISO 8601 time string. - [parseMonthDay](https://northguild.dev/gmt/reference/plain/parse/parseMonthDay.md): Return the canonical `--MM-DD` form of an ISO month-day string. - [parseMonthDayFromDate](https://northguild.dev/gmt/reference/plain/parse/parseMonthDayFromDate.md): Return the month-day (`--MM-DD`) of an ISO 8601 date string. - [parseMonthDayFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseMonthDayFromDateTime.md): Return the month-day (`--MM-DD`) of an ISO 8601 date-time string. - [parseMonthDayWithPattern](https://northguild.dev/gmt/reference/plain/parse/parseMonthDayWithPattern.md): Parse a month-day string against a caller-supplied token pattern (e.g. `"MM-dd"`, `"d MMMM"`) and return it as an ISO month-day string, `--MM-DD`. - [parseMonthFromDate](https://northguild.dev/gmt/reference/plain/parse/parseMonthFromDate.md): Return the month (1-12) for a given ISO 8601 date string. - [parseMonthFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseMonthFromDateTime.md): Return the month (1-12) for a given ISO 8601 datetime string. - [parseNanosecondFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseNanosecondFromDateTime.md): Return the nanosecond (0-999) for a given ISO 8601 datetime string. - [parseNanosecondFromTime](https://northguild.dev/gmt/reference/plain/parse/parseNanosecondFromTime.md): Return the nanosecond (0-999) for a given ISO 8601 time string. - [parseSecondFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseSecondFromDateTime.md): Return the second (0-59) for a given ISO 8601 datetime string. - [parseSecondFromTime](https://northguild.dev/gmt/reference/plain/parse/parseSecondFromTime.md): Return the second (0-59) for a given ISO 8601 time string. - [parseSqlDateTime](https://northguild.dev/gmt/reference/plain/parse/parseSqlDateTime.md): Parse a SQL timestamp literal without a time zone — the `YYYY-MM-DD HH:MM:SS[.fff]` form of standard SQL `TIMESTAMP` and MySQL/SQLite `DATETIME` columns — into a plain ISO 8601 datetime string. - [parseTimeWithPattern](https://northguild.dev/gmt/reference/plain/parse/parseTimeWithPattern.md): Parse a time string against a caller-supplied token pattern (e.g. `"HH:mm:ss"`, `"h:mm a"`) and return it as an ISO `PlainTime` string. - [parseUnitFromDate](https://northguild.dev/gmt/reference/plain/parse/parseUnitFromDate.md): Return a specific date unit extracted from a PlainDate string. - [parseUnitFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseUnitFromDateTime.md): Return a specific unit extracted from a PlainDateTime string. - [parseUnitFromTime](https://northguild.dev/gmt/reference/plain/parse/parseUnitFromTime.md): Return a specific time unit extracted from a PlainTime string. - [parseWeekFromDate](https://northguild.dev/gmt/reference/plain/parse/parseWeekFromDate.md): Return the week number for a given ISO 8601 date string. - [parseWeekFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseWeekFromDateTime.md): Return the week number for a given ISO 8601 datetime string. - [parseYearFromDate](https://northguild.dev/gmt/reference/plain/parse/parseYearFromDate.md): Return the year for a given ISO 8601 date string. - [parseYearFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseYearFromDateTime.md): Return the year for a given ISO 8601 datetime string. - [parseYearMonth](https://northguild.dev/gmt/reference/plain/parse/parseYearMonth.md): Return the canonical `YYYY-MM` form of an ISO year-month string (`±YYYYYY-MM` outside 0000-9999). - [parseYearMonthFromDate](https://northguild.dev/gmt/reference/plain/parse/parseYearMonthFromDate.md): Return the year-month (`YYYY-MM`) of an ISO 8601 date string. - [parseYearMonthFromDateTime](https://northguild.dev/gmt/reference/plain/parse/parseYearMonthFromDateTime.md): Return the year-month (`YYYY-MM`) of an ISO 8601 date-time string. - [parseYearMonthWithPattern](https://northguild.dev/gmt/reference/plain/parse/parseYearMonthWithPattern.md): Parse a year-month string against a caller-supplied token pattern (e.g. `"MM/yyyy"`, `"MMMM yyyy"`) and return it as an ISO year-month string, `YYYY-MM`. ## validate - [hasSecond60](https://northguild.dev/gmt/reference/plain/validate/hasSecond60.md): Return true if the string is one of GMT's own kinds with a second-60 field. - [isLeapYear](https://northguild.dev/gmt/reference/plain/validate/isLeapYear.md): Return true when the given PlainDate falls in a leap year. - [isValidCalendarDate](https://northguild.dev/gmt/reference/plain/validate/isValidCalendarDate.md): Return true if `value` is a valid GMT PlainDate string: a bare ISO date ("2024-10-03") or an RFC 9557 calendar-annotated date ("2024-10-03[u-ca=hebrew]"), as `Temporal.PlainDate#toString()` and `convertDateToCalendar` write it. - [isValidDate](https://northguild.dev/gmt/reference/plain/validate/isValidDate.md): Return true if `value` is a valid ISO PlainDate string. - [isValidDateCycleField](https://northguild.dev/gmt/reference/plain/validate/isValidDateCycleField.md): Return true when `field` is a valid DateCycleField. - [isValidDateDurationUnit](https://northguild.dev/gmt/reference/plain/validate/isValidDateDurationUnit.md): Return true when `unit` is a valid DateDurationUnit. - [isValidDateRange](https://northguild.dev/gmt/reference/plain/validate/isValidDateRange.md): Return whether `value1` is before `value2`. - [isValidDateTime](https://northguild.dev/gmt/reference/plain/validate/isValidDateTime.md): Return true when `value` is a valid PlainDateTime string. - [isValidDateTimeCycleField](https://northguild.dev/gmt/reference/plain/validate/isValidDateTimeCycleField.md): Return true when `field` is a valid DateTimeCycleField (a valid DateCycleField or TimeCycleField). Used by `cycleDateTime` and `cycleZoned`, which can cycle either kind of field. - [isValidDateTimeDurationUnit](https://northguild.dev/gmt/reference/plain/validate/isValidDateTimeDurationUnit.md): Return true when `unit` is a valid DateTimeDurationUnit. - [isValidDateTimeRange](https://northguild.dev/gmt/reference/plain/validate/isValidDateTimeRange.md): Return true if `value1` and `value2` form a valid datetime range — both parseable as ISO PlainDateTime strings and `value1` before `value2`. - [isValidDateTimeUnit](https://northguild.dev/gmt/reference/plain/validate/isValidDateTimeUnit.md): Return true when `unit` is a valid DateTimeUnit. - [isValidDateUnit](https://northguild.dev/gmt/reference/plain/validate/isValidDateUnit.md): Return true when `unit` is a valid DateUnit. - [isValidIsoDateLike](https://northguild.dev/gmt/reference/plain/validate/isValidIsoDateLike.md): Return true when the input is a valid PlainDate or PlainDateTime ISO string. - [isValidMonthDay](https://northguild.dev/gmt/reference/plain/validate/isValidMonthDay.md): Return true if `value` is a valid ISO month-day string: `--MM-DD` or `MM-DD`. - [isValidSqlDateTime](https://northguild.dev/gmt/reference/plain/validate/isValidSqlDateTime.md): Return true when `value` is a real SQL timestamp literal without a time zone: the `YYYY-MM-DD HH:MM:SS[.fff]` value of a standard SQL `TIMESTAMP` or a MySQL/SQLite `DATETIME` column. It checks one date-and-time value, not a SQL statement. - [isValidTime](https://northguild.dev/gmt/reference/plain/validate/isValidTime.md): Return true when `value` is a valid ISO PlainTime string. - [isValidTimeCycleField](https://northguild.dev/gmt/reference/plain/validate/isValidTimeCycleField.md): Return true when `field` is a valid TimeCycleField. - [isValidTimeDurationUnit](https://northguild.dev/gmt/reference/plain/validate/isValidTimeDurationUnit.md): Return true when `unit` is a valid TimeDurationUnit. - [isValidTimeRange](https://northguild.dev/gmt/reference/plain/validate/isValidTimeRange.md): Return true if `value1` and `value2` form a valid time range — both parseable as ISO PlainTime strings and `value1` before `value2`. - [isValidTimeUnit](https://northguild.dev/gmt/reference/plain/validate/isValidTimeUnit.md): Return true when `unit` is a valid TimeUnit. - [isValidYearMonth](https://northguild.dev/gmt/reference/plain/validate/isValidYearMonth.md): Return true if `value` is a valid ISO year-month string: `YYYY-MM` or `±YYYYYY-MM`.