Language

TimeZoneNames.GetTimeZoneDisplayName(String, TimeZoneNames+NameType) Method

Definition

Returns the display name of the time zone.

[Android.Runtime.Register("getTimeZoneDisplayName", "(Ljava/lang/String;Landroid/icu/text/TimeZoneNames$NameType;)Ljava/lang/String;", "GetGetTimeZoneDisplayName_Ljava_lang_String_Landroid_icu_text_TimeZoneNames_NameType_Handler", ApiSince=24)]
public abstract string? GetTimeZoneDisplayName(string? tzID, Android.Icu.Text.TimeZoneNames.NameType? type);
[<Android.Runtime.Register("getTimeZoneDisplayName", "(Ljava/lang/String;Landroid/icu/text/TimeZoneNames$NameType;)Ljava/lang/String;", "GetGetTimeZoneDisplayName_Ljava_lang_String_Landroid_icu_text_TimeZoneNames_NameType_Handler", ApiSince=24)>]
abstract member GetTimeZoneDisplayName : string * Android.Icu.Text.TimeZoneNames.NameType -> string

Parameters

tzID
String

The canonical time zone ID.

type
TimeZoneNames.NameType

The display name type. See TimeZoneNames.NameType.

Returns

The display name for the time zone. When this object does not have a localized display name for the given time zone with the specified type, null is returned.

Attributes

Remarks

Returns the display name of the time zone. Unlike getDisplayName(String,NameType,long), this method does not get a name from a meta zone used by the time zone.

Android reference for android.icu.text.TimeZoneNames.getTimeZoneDisplayName.

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