Freigeben über


TimeZone.GetFrozenTimeZone(String) Method

Definition

Gets the TimeZone for the given ID.

[Android.Runtime.Register("getFrozenTimeZone", "(Ljava/lang/String;)Landroid/icu/util/TimeZone;", "", ApiSince=24)]
public static Android.Icu.Util.TimeZone? GetFrozenTimeZone (string? ID);
[<Android.Runtime.Register("getFrozenTimeZone", "(Ljava/lang/String;)Landroid/icu/util/TimeZone;", "", ApiSince=24)>]
static member GetFrozenTimeZone : string -> Android.Icu.Util.TimeZone

Parameters

ID
String

the ID for a TimeZone, such as "America/Los_Angeles", or a custom ID such as "GMT-8:00". Note that the support of abbreviations, such as "PST", is for JDK 1.1.x compatibility only and full names should be used.

Returns

the specified TimeZone, or the UNKNOWN_ZONE if the given ID cannot be understood.

Attributes

Remarks

Gets the TimeZone for the given ID. The instance of TimeZone returned by this method is immutable. Any methods mutate the instance(#setID(String), #setRawOffset(int)) will throw UnsupportedOperationException upon its invocation.

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