Share via


TimeZoneNames.GetTZDBInstance(ULocale) Method

Definition

Returns an instance of TimeZoneNames containing only short specific zone names (NameType#SHORT_STANDARD and NameType#SHORT_DAYLIGHT), compatible with the IANA tz database's zone abbreviations (not localized).

[Android.Runtime.Register("getTZDBInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/TimeZoneNames;", "", ApiSince=24)]
public static Android.Icu.Text.TimeZoneNames? GetTZDBInstance (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getTZDBInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/TimeZoneNames;", "", ApiSince=24)>]
static member GetTZDBInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.TimeZoneNames

Parameters

locale
ULocale

Returns

Attributes

Remarks

Returns an instance of TimeZoneNames containing only short specific zone names (NameType#SHORT_STANDARD and NameType#SHORT_DAYLIGHT), compatible with the IANA tz database's zone abbreviations (not localized). <br> Note: The input locale is used for resolving ambiguous names (e.g. "IST" is parsed as Israel Standard Time for Israel, while it is parsed as India Standard Time for all other regions). The zone names returned by this instance are not localized.

Java documentation for android.icu.text.TimeZoneNames.getTZDBInstance(android.icu.util.ULocale).

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