TimeZone.HasSameRules(TimeZone) Method

Definition

Returns true if this zone has the same rule and offset as another zone.

[Android.Runtime.Register("hasSameRules", "(Ljava/util/TimeZone;)Z", "GetHasSameRules_Ljava_util_TimeZone_Handler")]
public virtual bool HasSameRules (Java.Util.TimeZone? other);
[<Android.Runtime.Register("hasSameRules", "(Ljava/util/TimeZone;)Z", "GetHasSameRules_Ljava_util_TimeZone_Handler")>]
abstract member HasSameRules : Java.Util.TimeZone -> bool
override this.HasSameRules : Java.Util.TimeZone -> bool

Parameters

other
TimeZone

the TimeZone object to be compared with

Returns

true if the other zone is not null and is the same as this one, with the possible exception of the ID

Attributes

Remarks

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.

Added in 1.2.

Java documentation for java.util.TimeZone.hasSameRules(java.util.TimeZone).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to