Skip to content

plain/compare

  • 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.
  • areTimesEqual: Return true if two PlainTime ISO strings represent the same time components.
  • isAfterDate: Return true if the first ISO PlainDate string represents a date after the second.
  • isAfterDateTime: Return true when value1 is strictly after value2 for PlainDateTime values.
  • isAfterTime: Return true when value1 is strictly after value2 for PlainTime values.
  • isBeforeDate: Return true when value1 is strictly before value2 for PlainDate values.
  • isBeforeDateTime: Return true when value1 is strictly before value2 for PlainDateTime values.
  • isBeforeTime: Return true when value1 is strictly before value2 for PlainTime values.
  • isBetweenDate: Return true when date is between start and end (inclusive by default).
  • isBetweenDateTime: Return true when dateTime is between start and end (inclusive by default).
  • isBetweenTime: Return true when time is between start and end (inclusive by default).
  • isBusinessDay: Return true when value is a working day in calendar.
  • isFuture: Return true when value is strictly after today, per the system clock and system timeZone.
  • isPast: Return true when value is strictly before today, per the system clock and system timeZone.
  • isRelativeDay: Return true when value falls offsetDays days from today, per the system clock and system timeZone.
  • isThisUnit: Return true when value falls in the same unit as today, per the system clock and system timeZone.
  • isWeekend: Return true when value falls on a weekend day for locale.