Partager via


TimeZone.CountEquivalentIDs(String) Method

Definition

<strong>[icu]</strong> Returns the number of IDs in the equivalency group that includes the given ID.

[Android.Runtime.Register("countEquivalentIDs", "(Ljava/lang/String;)I", "", ApiSince=24)]
public static int CountEquivalentIDs (string? id);
[<Android.Runtime.Register("countEquivalentIDs", "(Ljava/lang/String;)I", "", ApiSince=24)>]
static member CountEquivalentIDs : string -> int

Parameters

id
String

a system time zone ID

Returns

the number of zones in the equivalency group containing 'id', or zero if 'id' is not a valid system ID

Attributes

Remarks

<strong>[icu]</strong> Returns the number of IDs in the equivalency group that includes the given ID. An equivalency group contains zones that have the same GMT offset and rules.

The returned count includes the given ID; it is always &gt;= 1 for valid IDs. The given ID must be a system time zone. If it is not, returns zero.

Java documentation for android.icu.util.TimeZone.countEquivalentIDs(java.lang.String).

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