/** * Checks if the instant of this {@code OffsetTime} is equal to that of the * specified time applying both times to a common date. * <p> * This method differs from the comparison in {@link #compareTo} and {@link #equals} * in that it only compares the instant of the time. This is equivalent to converting both * times to an instant using the same date and comparing the instants. * * @param OffsetTime $other the other time to compare to, not null * @return bool true if this is equal to the instant of the specified time */ public function isEqual(OffsetTime $other) { return $this->toEpochNano() == $other->toEpochNano(); }