Skip to content

zoned/compare

  • The core functions, which every industry uses.
  • areZonedEqual: Compare two zoned datetime strings the way Temporal’s ZonedDateTime.prototype.equals does.
  • areZonedEqualBy: Compare two zoned ISO datetime strings for equality at a given unit.
  • isAfterZoned: Return whether value1 represents an instant strictly after value2.
  • isBeforeZoned: Return whether value1 represents an instant strictly before value2.
  • isBetweenZoned: Return true when zoned is between start and end (inclusive by default).
  • isInDaylightSaving: Check whether a zoned value’s instant falls within daylight saving time.
  • isZonedBusinessDay: Return true when value falls on a Monday–Friday business day in the given timezone.
  • isZonedFuture: Return true when value represents an instant strictly after now.
  • isZonedPast: Return true when value represents an instant strictly before now.
  • isZonedRelativeDay: Return true when value’s local calendar day falls offsetDays days from today in value’s own IANA timeZone.
  • isZonedThisUnit: Return true when value’s local calendar day falls in the same unit as today, both resolved in value’s own IANA timeZone.
  • isZonedWeekend: Return true when value’s local calendar day falls on a weekend for locale.

Last updated:

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.