Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The equals()
method of Temporal.ZonedDateTime
instances returns true
if this date-time is equivalent in value to another date-time (in a form convertible by Temporal.ZonedDateTime.from()
), and false
otherwise. They are compared both by their instant values, time zones, and their calendars, so two date-times from different calendars or time zones may be considered equal by Temporal.ZonedDateTime.compare()
but not by equals()
.