plain/calculate
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.
EndOfTimeUnit: UnitsendOfTimeaccepts: a Temporal time unit, or"day"for the last moment of the day, each singular or plural.StartOfTimeUnit: UnitsstartOfTimeaccepts: a Temporal time unit, or"day"for midnight, each singular or plural.
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.