/** * Returns true if the two TimeZone objects are equal. * * @param AgaviTimeZone The timezone to compare against. * * @author Dominik del Bondio <*****@*****.**> * @author The ICU Project * @since 0.11.0 */ function __is_equal(AgaviTimeZone $that) { // TODO: we need to compare finalyear and the transitions and finalzone return $this === $that || get_class($this) == get_class($that) && AgaviTimeZone::__is_equal($that); }
/** * Returns true if the two TimeZone objects are equal; that is, they have * the same ID, raw GMT offset, and DST rules. * * @param AgaviTimeZone The SimpleTimeZone object to be compared with. * * @return bool True if the given time zone is equal to this time zone; * false otherwise. * * @author Dominik del Bondio <*****@*****.**> * @author The ICU Project * @since 0.11.0 */ function __is_equal(AgaviTimeZone $that) { return $this === $that || get_class($this) == get_class($that) && AgaviTimeZone::__is_equal($that) && $this->hasSameRules($that); }