plain
addBusinessDays: Return a PlainDate ISO string withamountworking days added tovalue.addDate: Return a PlainDate ISO string withamountadded according tounits.addDateTime: Return a PlainDateTime ISO string withunitsadded tovalue.addTime: Return a PlainTime ISO string withunitsadded tovalue.addYearMonth: Return a year-month string moved forward byunits.clampDate: Restrictvalueto the range [min,max].closestDateTo: Return the candidate date nearest totargetby calendar distance.cycleDate: Return a PlainDate ISO string withfieldcycled byamount, wrapping at that field’s own min/max instead of carrying into the next larger field.cycleDateTime: Return a PlainDateTime ISO string withfieldcycled byamount, wrapping at that field’s own min/max instead of carrying into the next larger field.cycleTime: Return a PlainTime ISO string withfieldcycled byamount, wrapping at that field’s own min/max instead of carrying into the next larger field (hour23+1wraps to0, it never changes a date —cycleTimehas no date component to carry into in the first place).diffDate: Return the difference between two PlainDate values using the providedunit.diffDateAsDuration: Return the difference between two PlainDate values as an ISO 8601 duration string, bridging to thedurationnamespace (seeparseDuration,normalizeDuration).diffDateTime: Return the difference between two PlainDateTime values in the requested unit.diffDateTimeAsDuration: Return the difference between two PlainDateTime values as an ISO 8601 duration string, bridging to thedurationnamespace (seeparseDuration,normalizeDuration).diffTime: Return the difference between two PlainTime values in the requested unit.diffYearMonth: Return the whole years or months from year-monthato year-monthb.endOfDate: Return the end of the specified dateunitfor a given ISO 8601 date string.endOfDateTime: Return the end of the specified date-timeunitfor a given ISO 8601 datetime string.endOfQuarterForDate: Return the last day of the quarter for a given ISO date.endOfQuarterForDateTime: Return the end of the quarter for a given ISO datetime.endOfTime: Return the end of the specified timeunitfor a given ISO 8601 time string.endOfYearMonth: The last day of a year-month, as an ISO date.getDayOfYear: Return the ordinal day-of-year (1-based) forvalue.getDaysInMonth: Return the number of days in the month containingvalue.getDaysInYear: Return the number of days in the calendar year containingvalue.getDaysInYearMonth: Return the number of days in a year-month.getLargestDateDurationUnit: Return the largest DateDurationUnit from the provided array.getLargestDateTimeDurationUnit: Return the largest DateTimeDurationUnit from the provided array.getLargestTimeDurationUnit: Return the largest TimeDurationUnit from the provided array.getLocaleDayOfWeek: Return the locale-relative day-of-week index forvalue.getLocaleEndOfWeek: Return the end of the week containingvalue, usinglocale’s first day of week (e.g. fr-FR: week ends Sunday, ja-JP: week ends Saturday).getLocaleStartOfWeek: Return the start of the week containingvalue, usinglocale’s first day of week (e.g. fr-FR: Monday, ja-JP: Sunday).getLocaleWeekYear: Return the locale-relative week-numbering yearvaluebelongs to, fromlocale’s first day of week and a minimal-days-in-first-week rule.getQuarterForDate: Return the quarter of the year (1-4) for a given ISO date.getQuarterForDateTime: Return the quarter of the year (1-4) for a given ISO datetime.getWeekNumber: Calculate the week number based on configurable week start day.getWeekOfMonth: Return the 1-based rowvaluefalls on within its month’s calendar grid, usinglocale’s first day of week.getWeeksInLocaleWeekYear: Return the number of weeks (52 or 53) in the locale week-numbering year containingvalue, fromlocale’s first day of week and a minimal-days-in-first-week rule.getWeeksInMonth: Return the number of calendar-grid rows (4, 5, or 6)value’s month spans, usinglocale’s first day of week.getWeeksInYear: Return the number of ISO weeks (52 or 53) in the ISO week-numbering year containingvalue.getWeekYear: Return the ISO 8601 week-numbering yearvaluebelongs to.maxDate: Return the latest (maximum) of the given PlainDate values.maxDateTime: Return the latest (maximum) of the given PlainDateTime values.maxTime: Return the latest (maximum) of the given PlainTime values.minDate: Return the earliest (minimum) of the given PlainDate values.minDateTime: Return the earliest (minimum) of the given PlainDateTime values.minTime: Return the earliest (minimum) of the given PlainTime values.nextWeekday: Return a PlainDate ISO string for the next occurrence ofdayOfWeekaftervalue(or on it, withinclusive: true).previousWeekday: Return a PlainDate ISO string for the previous occurrence ofdayOfWeekbeforevalue(or on it, withinclusive: true).roundDate: Round an ISO 8601 date string to the specified date unit.roundDateTime: Round an ISO 8601 datetime string to the specified date-time unit.roundTime: Round an ISO 8601 time string to the specified time unit.setDate: Return a PlainDate ISO string with the givenfieldsset onvalue.setDateTime: Return a PlainDateTime ISO string with the givenfieldsset onvalue.setTime: Return a PlainTime ISO string with the givenfieldsset onvalue.sortDates: Sort an array of PlainDate values in ascending or descending order.sortDateTimes: Sort an array of PlainDateTime values in ascending or descending order.sortTimes: Sort an array of PlainTime values in ascending or descending order.startOfDate: Return the start of the specified dateunitfor a given ISO 8601 date string.startOfDateTime: Return the start of the specified date-timeunitfor a given ISO 8601 datetime string.startOfQuarterForDate: Return the first day of the quarter for a given ISO date.startOfQuarterForDateTime: Return the start of the quarter for a given ISO datetime.startOfTime: Return the start of the specified timeunitfor a given ISO 8601 time string.startOfYearMonth: The first day of a year-month, as an ISO date.subtractBusinessDays: Return a PlainDate ISO string withamountworking days subtracted fromvalue.subtractDate: Return a PlainDate ISO string withunitssubtracted fromvalue.subtractDateTime: Return a PlainDateTime ISO string withunitssubtracted fromvalue.subtractTime: Return a PlainTime ISO string withunitssubtracted fromvalue.subtractYearMonth: Return a year-month string moved backward byunits.weekOfYearForDate: Return the ISO week number for a given ISO 8601 date string.weekOfYearForDateTime: Return the ISO week number for a given ISO 8601 datetime string.
chopDate: Return the PlainTime portion extracted from an ISO PlainDateTime string.chopMilliseconds: Return a string with millisecond precision removed from a PlainDateTime or PlainTime value.chopSeconds: Return an ISO string with second precision removed from a PlainDateTime or PlainTime value.chopTime: Return the PlainDate portion extracted from an ISO PlainDateTime string.
areDatesEqual: Compare two ISO date-like strings for equality, ignoring time components.areDatesEqualBy: Compare two ISO date strings for equality at a given calendar unit.areDateTimesEqual: Return true if two PlainDateTime ISO strings represent the same instant of local date/time components.areDateTimesEqualBy: Compare two ISO datetime strings for equality at a given unit.areMonthDaysEqual: Check whether two month-day strings (--MM-DD, orMM-DD) name the same day of the year.areTimesEqual: Return true if two PlainTime ISO strings represent the same time components.areYearMonthsEqual: Check whether two year-month strings (YYYY-MM) name the same year and month.compareMonthDays: Compare two month-day strings (--MM-DD, orMM-DD) in calendar order: month first, then day.compareYearMonths: Compare two year-month strings (YYYY-MM) in calendar order: year first, then month.isAfterDate: Return true if the first ISO PlainDate string represents a date after the second.isAfterDateTime: Return true whenvalue1is strictly aftervalue2for PlainDateTime values.isAfterTime: Return true whenvalue1is strictly aftervalue2for PlainTime values.isBeforeDate: Return true whenvalue1is strictly beforevalue2for PlainDate values.isBeforeDateTime: Return true whenvalue1is strictly beforevalue2for PlainDateTime values.isBeforeTime: Return true whenvalue1is strictly beforevalue2for PlainTime values.isBetweenDate: Return true whendateis betweenstartandend(inclusive by default).isBetweenDateTime: Return true whendateTimeis betweenstartandend(inclusive by default).isBetweenTime: Return true whentimeis betweenstartandend(inclusive by default).isBusinessDay: Return true whenvalueis a working day incalendar.isFuture: Return true whenvalueis strictly after today, per the system clock and system timeZone.isPast: Return true whenvalueis strictly before today, per the system clock and system timeZone.isRelativeDay: Return true whenvaluefallsoffsetDaysdays from today, per the system clock and system timeZone.isThisUnit: Return true whenvaluefalls in the sameunitas today, per the system clock and system timeZone.isWeekend: Return true whenvaluefalls on a weekend day forlocale.
convertDateToCalendar: Express a PlainDate in a calendar system: the RFC 9557 stringTemporal.PlainDate#toString()writes for that date in that calendar.monthDayToDate: The ISO date of a month-day in a given year.
formatCalendar: Format a plain date-time as a relative day label plus time-of-day, e.g. “Tomorrow at 2:30 PM”.formatDate: Return a localized string for a PlainDate ISO input using Intl options.formatDateRange: Format a plain date range using the Temporal Intl.DateTimeFormat formatRange API.formatDateTime: Return a localized string for a PlainDateTime ISO input using Intl options.formatDateTimeRange: Format a plain datetime range using the Temporal Intl.DateTimeFormat formatRange API.formatDateTimeToParts: Return the locale-formatted parts of a PlainDateTime.formatDateToParts: Return the locale-formatted parts of a PlainDate.formatMonthDay: Return a localized string for a month-day (--MM-DDorMM-DD) using Intl options.formatRelativeDate: Format the relative time between a plain date and a reference date.formatRelativeDateTime: Format the relative time between a plain date-time and a reference date-time.formatRelativeTime: Format the relative time between a plain time and a reference time.formatSqlDateTime: Format a plain ISO 8601 datetime string as a SQL timestamp literal without a time zone — theYYYY-MM-DD HH:MM:SS[.fff]form of standard SQLTIMESTAMPand MySQL/SQLiteDATETIMEcolumns.formatTime: Return a localized string for a PlainTime ISO input using Intl options.formatYearMonth: Return a localized string for a year-month (YYYY-MM) using Intl options.
getDateAgo: Return the PlainDate before today, as an ISO string, counted from the current time.getDateIn: Return the PlainDate after today, as an ISO string, counted from the current time.getDateTimeAgo: Return the PlainDateTime before now, as an ISO string, counted from the current time.getDateTimeIn: Return the PlainDateTime after now, as an ISO string, counted from the current time.getDay: Return the current day of month using the system timeZone.getDayOfWeek: Return the current ISO day of the week as a number in the system timeZone.getHour: Return the current hour using the system timeZone.getMicrosecond: Return the current microsecond using the system timeZone.getMillisecond: Return the current millisecond using the system timeZone.getMinute: Return the current minute using the system timeZone.getMonth: Return the current month using the system timeZone.getNanosecond: Return the current nanosecond using the system timeZone.getNow: Return the current local PlainDateTime as an ISO string using the system timeZone.getNowUnit: Return the requested current unit value using the system timeZone.getSecond: Return the current second using the system timeZone.getTimeAgo: Return the PlainTime before now, as an ISO string, counted from the current time.getTimeIn: Return the PlainTime after now, as an ISO string, counted from the current time.getToday: Return the current PlainDate as an ISO string in the system timeZone.getWeekOfYear: Get the ISO week number of the current date.getYear: Return the current year as a zero-padded string in the system timeZone.
intervalAbutsDate: 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: 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: 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: Return true whenpointOrStartlies in the half-open interval[intervalStart, intervalEnd)(3-arg), or when the inner interval[innerStart, innerEnd)lies within it (4-arg).intervalContainsDateTime: Return true whenpointOrStartlies in the half-open interval[intervalStart, intervalEnd)(3-arg), or when the inner interval[innerStart, innerEnd)lies within it (4-arg).intervalContainsTime: Return true whenpointOrStartlies in the half-open interval[intervalStart, intervalEnd)(3-arg), or when the inner interval[innerStart, innerEnd)lies within it (4-arg).intervalCountDate: Count how manyunitboundaries a date interval crosses.intervalCountDateTime: Count how manyunitboundaries a date-time interval crosses.intervalCountTime: Count how manyunitboundaries a time interval crosses.intervalDifferenceDate: Return the portion(s) of interval A not covered by interval B.intervalDifferenceDateTime: Return the portion(s) of interval A not covered by interval B.intervalDifferenceTime: Return the portion(s) of interval A not covered by interval B.intervalDivideEquallyDate: Split a date interval intonequal-length sub-intervals.intervalDivideEquallyDateTime: Split a datetime interval intonequal-length sub-intervals.intervalDivideEquallyTime: Split a time interval intonequal-length sub-intervals.intervalEngulfsDate: 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: 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: 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: Construct a date interval from a single point plus an ISO 8601 duration, anchored at either end.intervalFromDurationDateTime: Construct a datetime interval from a single point plus an ISO 8601 duration, anchored at either end.intervalFromDurationTime: Construct a time interval from a single point plus an ISO 8601 duration, anchored at either end.intervalIntersectionDate: Return the overlapping span of two date intervals, or null when they do not overlap.intervalIntersectionDateTime: Return the overlapping span of two datetime intervals, or null when they do not overlap.intervalIntersectionTime: Return the overlapping span of two time intervals, or null when they do not overlap.intervalLengthDate: Return the exact length of a date interval inunit, as a real (possibly fractional) number.intervalLengthDateTime: Return the exact length of a datetime interval inunit, as a real (possibly fractional) number.intervalLengthTime: Return the exact length of a time interval inunit, as a real (possibly fractional) number.intervalOverlappingDaysDate: Return how many distinct calendar dates two date intervals share.intervalOverlappingDaysDateTime: Return how many distinct calendar dates two datetime intervals share.intervalsOverlapDate: Return true when the half-open date intervals[aStart, aEnd)and[bStart, bEnd)share at least one day.intervalsOverlapDateTime: Return true when the half-open datetime intervals[aStart, aEnd)and[bStart, bEnd)share at least one moment.intervalsOverlapTime: Return true when the half-open time intervals[aStart, aEnd)and[bStart, bEnd)share at least one clock time.intervalSplitAtDate: Split a date interval at arbitrarypoints, producing consecutive sub-intervals.intervalSplitAtDateTime: Split a datetime interval at arbitrarypoints, producing consecutive sub-intervals.intervalSplitAtTime: Split a time interval at arbitrarypoints, producing consecutive sub-intervals.intervalUnionDate: Return the combined span of two date intervals, or null when they are disjoint.intervalUnionDateTime: Return the combined span of two datetime intervals, or null when they are disjoint.intervalUnionTime: Return the combined span of two time intervals, or null when they are disjoint.intervalXorAllDate: Return the symmetric difference across a list of date intervals — the set of dates covered by an odd number of the input intervals.intervalXorAllDateTime: Return the symmetric difference across a list of datetime intervals — the set of instants covered by an odd number of the input intervals.intervalXorAllTime: 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: Return the symmetric difference of two date intervals — time covered by exactly one interval.intervalXorDateTime: Return the symmetric difference of two datetime intervals — time covered by exactly one interval.intervalXorTime: Return the symmetric difference of two time intervals — time covered by exactly one interval.isValidDateInterval: Return true ifstartandendform a valid date interval — both parseable as ISO PlainDate strings andstart <= end.isValidDateTimeInterval: Return true ifstartandendform a valid datetime interval — both parseable as ISO PlainDateTime strings andstart <= end.isValidTimeInterval: Return true ifstartandendform a valid time interval — both parseable as ISO PlainTime strings andstart <= end.mergeIntervalsDate: Collapse a list of date intervals into the minimum set of non-overlapping intervals.mergeIntervalsDateTime: Collapse a list of datetime intervals into the minimum set of non-overlapping intervals.mergeIntervalsTime: Collapse a list of time intervals into the minimum set of non-overlapping intervals.splitIntervalByUnitDate: Split a date interval into sub-intervals ofamount × unit.splitIntervalByUnitDateTime: Split a date-time interval into sub-intervals ofamount × unit.splitIntervalByUnitTime: Split a time interval into sub-intervals ofamount × unit.
getLocaleEraNames: Return a locale’s Gregorian era names as [BCE-label, CE-label].getLocaleMeridiems: Return a locale’s AM/PM (day-period) labels as[AM-label, PM-label].getLocaleMonthNames: Return the 12 Gregorian calendar-month names for a locale, in calendar order (January first, December last — not alphabetical).getLocaleWeekdayNames: Return the 7 weekday names for a locale, ordered starting from the locale’s first day of the week.
mapDatesInRange: Return an array of ISO PlainDate strings betweenstartDateandendDateinclusive.mapDaysInMonth: Return an array of ISO PlainDate strings for every day in the given year-month.
parseDateTimeWithPattern: 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 ISOPlainDateTimestring.parseDateWithPattern: Parse a date string against a caller-supplied token pattern (e.g."dd/MM/yyyy","dd-MMM-yyyy") and return it as an ISOPlainDatestring.parseDayFromDate: Return the day of month (1-31) for a given ISO 8601 date string.parseDayFromDateTime: Return the day of month (1-31) for a given ISO 8601 datetime string.parseDayOfWeekFromDate: Return the day of week (1-7) for a given ISO 8601 date string.parseDayOfWeekFromDateTime: Return the day of week (1-7) for a given ISO 8601 datetime string.parseHourFromDateTime: Return the hour (00-23) for a given ISO 8601 datetime string.parseHourFromTime: Return the hour (0-23) for a given ISO 8601 time string.parseMicrosecondFromDateTime: Return the microsecond (0-999) for a given ISO 8601 datetime string.parseMicrosecondFromTime: Return the microsecond (0-999) for a given ISO 8601 time string.parseMillisecondFromDateTime: Return the millisecond (0-999) for a given ISO 8601 datetime string.parseMillisecondFromTime: Return the millisecond (0-999) for a given ISO 8601 time string.parseMinuteFromDateTime: Return the minute (0-59) for a given ISO 8601 datetime string.parseMinuteFromTime: Return the minute (0-59) for a given ISO 8601 time string.parseMonthDay: Return the canonical--MM-DDform of an ISO month-day string.parseMonthDayFromDate: Return the month-day (--MM-DD) of an ISO 8601 date string.parseMonthDayFromDateTime: Return the month-day (--MM-DD) of an ISO 8601 date-time string.parseMonthDayWithPattern: 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: Return the month (1-12) for a given ISO 8601 date string.parseMonthFromDateTime: Return the month (1-12) for a given ISO 8601 datetime string.parseNanosecondFromDateTime: Return the nanosecond (0-999) for a given ISO 8601 datetime string.parseNanosecondFromTime: Return the nanosecond (0-999) for a given ISO 8601 time string.parseSecondFromDateTime: Return the second (0-59) for a given ISO 8601 datetime string.parseSecondFromTime: Return the second (0-59) for a given ISO 8601 time string.parseSqlDateTime: Parse a SQL timestamp literal without a time zone — theYYYY-MM-DD HH:MM:SS[.fff]form of standard SQLTIMESTAMPand MySQL/SQLiteDATETIMEcolumns — into a plain ISO 8601 datetime string.parseTimeWithPattern: Parse a time string against a caller-supplied token pattern (e.g."HH:mm:ss","h:mm a") and return it as an ISOPlainTimestring.parseUnitFromDate: Return a specific date unit extracted from a PlainDate string.parseUnitFromDateTime: Return a specific unit extracted from a PlainDateTime string.parseUnitFromTime: Return a specific time unit extracted from a PlainTime string.parseWeekFromDate: Return the week number for a given ISO 8601 date string.parseWeekFromDateTime: Return the week number for a given ISO 8601 datetime string.parseYearFromDate: Return the year for a given ISO 8601 date string.parseYearFromDateTime: Return the year for a given ISO 8601 datetime string.parseYearMonth: Return the canonicalYYYY-MMform of an ISO year-month string (±YYYYYY-MMoutside 0000-9999).parseYearMonthFromDate: Return the year-month (YYYY-MM) of an ISO 8601 date string.parseYearMonthFromDateTime: Return the year-month (YYYY-MM) of an ISO 8601 date-time string.parseYearMonthWithPattern: 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.
hasSecond60: Return true if the string is one of GMT’s own kinds with a second-60 field.isLeapYear: Return true when the given PlainDate falls in a leap year.isValidCalendarDate: Return true ifvalueis 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]”), asTemporal.PlainDate#toString()andconvertDateToCalendarwrite it.isValidDate: Return true ifvalueis a valid ISO PlainDate string.isValidDateCycleField: Return true whenfieldis a valid DateCycleField.isValidDateDurationUnit: Return true whenunitis a valid DateDurationUnit.isValidDateRange: Return whethervalue1is beforevalue2.isValidDateTime: Return true whenvalueis a valid PlainDateTime string.isValidDateTimeCycleField: Return true whenfieldis a valid DateTimeCycleField (a valid DateCycleField or TimeCycleField).isValidDateTimeDurationUnit: Return true whenunitis a valid DateTimeDurationUnit.isValidDateTimeRange: Return true ifvalue1andvalue2form a valid datetime range — both parseable as ISO PlainDateTime strings andvalue1beforevalue2.isValidDateTimeUnit: Return true whenunitis a valid DateTimeUnit.isValidDateUnit: Return true whenunitis a valid DateUnit.isValidIsoDateLike: Return true when the input is a valid PlainDate or PlainDateTime ISO string.isValidMonthDay: Return true ifvalueis a valid ISO month-day string:--MM-DDorMM-DD.isValidSqlDateTime: Return true whenvalueis a real SQL timestamp literal without a time zone: theYYYY-MM-DD HH:MM:SS[.fff]value of a standard SQLTIMESTAMPor a MySQL/SQLiteDATETIMEcolumn.isValidTime: Return true whenvalueis a valid ISO PlainTime string.isValidTimeCycleField: Return true whenfieldis a valid TimeCycleField.isValidTimeDurationUnit: Return true whenunitis a valid TimeDurationUnit.isValidTimeRange: Return true ifvalue1andvalue2form a valid time range — both parseable as ISO PlainTime strings andvalue1beforevalue2.isValidTimeUnit: Return true whenunitis a valid TimeUnit.isValidYearMonth: Return true ifvalueis a valid ISO year-month string:YYYY-MMor±YYYYYY-MM.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.