Logo Search packages:      
Sourcecode: icu version File versions  Download package

UBool TimeZone::hasSameRules ( const TimeZone other  )  const [virtual]

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.

other the TimeZone object to be compared with
true if the given zone is the same as this one, with the possible exception of the ID ICU 2.0

Reimplemented in OlsonTimeZone, RuleBasedTimeZone, SimpleTimeZone, and VTimeZone.

Definition at line 1312 of file timezone.cpp.

References getRawOffset(), and useDaylightTime().

Referenced by BasicTimeZone::hasEquivalentTransitions(), VTimeZone::hasSameRules(), and TimeZoneTest::TestCountries().

    return (getRawOffset() == other.getRawOffset() && 
            useDaylightTime() == other.useDaylightTime());

Generated by  Doxygen 1.6.0   Back to index