/** * Returns true if this zone has the same rule and offset as another zone. * That is, if this zone differs only in ID, if at all. * * @param AgaviTimeZone The object to be compared with * * @return bool True if the given zone is the same as this one, * with the possible exception of the ID * * @author Dominik del Bondio <*****@*****.**> * @author The ICU Project * @since 0.11.0 */ public function hasSameRules(AgaviTimeZone $other) { return $this->getRawOffset() == $other->getRawOffset() && $this->useDaylightTime() == $other->useDaylightTime(); }