Skip to content

zoned/compare

  • areZonedEqual: Compare two zoned datetime strings for exact local-field equality.
  • 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 ISO 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.