Partager via


TimeZone.GetCanonicalID Method

Definition

Overloads

GetCanonicalID(String)

<strong>[icu]</strong> Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.

GetCanonicalID(String, Boolean[])

<strong>[icu]</strong> Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.

GetCanonicalID(String)

<strong>[icu]</strong> Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.

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

Parameters

id
String

The input time zone ID to be canonicalized.

Returns

The canonical system time zone ID or the custom time zone ID in normalized format for the given time zone ID. When the given time zone ID is neither a known system time zone ID nor a valid custom time zone ID, null is returned.

Attributes

Remarks

<strong>[icu]</strong> Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.

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

GetCanonicalID(String, Boolean[])

<strong>[icu]</strong> Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.

[Android.Runtime.Register("getCanonicalID", "(Ljava/lang/String;[Z)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetCanonicalID (string? id, bool[]? isSystemID);
[<Android.Runtime.Register("getCanonicalID", "(Ljava/lang/String;[Z)Ljava/lang/String;", "", ApiSince=24)>]
static member GetCanonicalID : string * bool[] -> string

Parameters

id
String

The input time zone ID to be canonicalized.

isSystemID
Boolean[]

When non-null boolean array is specified and the given ID is a known system time zone ID, true is set to isSystemID[0]

Returns

The canonical system time zone ID or the custom time zone ID in normalized format for the given time zone ID. When the given time zone ID is neither a known system time zone ID nor a valid custom time zone ID, null is returned.

Attributes

Remarks

<strong>[icu]</strong> Returns the canonical system time zone ID or the normalized custom time zone ID for the given time zone ID.

Java documentation for android.icu.util.TimeZone.getCanonicalID(java.lang.String, boolean[]).

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