/// <summary> /// 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. Returns false if the /// other zone is null. /// </summary> /// /// <param name="other">the <c>TimeZone</c> object to be compared with</param> /// <returns>true if the other zone is not null and is the same as this one, /// with the possible exception of the ID</returns> /// @stable ICU 2.0 public virtual bool HasSameRules(TimeZone other) { return(other != null && GetRawOffset() == other.GetRawOffset() && UseDaylightTime() == other.UseDaylightTime()); }
/// <summary> /// TimeZone API; calls through to wrapped time zone. /// </summary> /// public override int GetRawOffset() { return(zone.GetRawOffset()); }