Läs på engelska

Dela via


TimeZone.HasSameRules(TimeZone) Method

Definition

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

C#
[Android.Runtime.Register("hasSameRules", "(Landroid/icu/util/TimeZone;)Z", "GetHasSameRules_Landroid_icu_util_TimeZone_Handler", ApiSince=24)]
public virtual bool HasSameRules(Android.Icu.Util.TimeZone? other);

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.

Java documentation for android.icu.util.TimeZone.hasSameRules(android.icu.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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35