TimeZoneNames.GetDisplayName(String, TimeZoneNames+NameType, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the display name of the time zone at the given date.
[Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;Landroid/icu/text/TimeZoneNames$NameType;J)Ljava/lang/String;", "", ApiSince=24)]
public string? GetDisplayName(string? tzID, Android.Icu.Text.TimeZoneNames.NameType? type, long date);
[<Android.Runtime.Register("getDisplayName", "(Ljava/lang/String;Landroid/icu/text/TimeZoneNames$NameType;J)Ljava/lang/String;", "", ApiSince=24)>]
member this.GetDisplayName : string * Android.Icu.Text.TimeZoneNames.NameType * int64 -> string
Parameters
- tzID
- String
The canonical time zone ID.
The display name type. See TimeZoneNames.NameType.
- date
- Int64
The date
Returns
The display name for the time zone at the given date. When this object does not have a localized display name for the time zone with the specified type and date, null is returned.
- Attributes
Remarks
Returns the display name of the time zone at the given date. Note: This method calls the subclass's getTimeZoneDisplayName(String,NameType) first. When the result is null, this method calls getMetaZoneID(String,long) to get the meta zone ID mapped from the time zone, then calls getMetaZoneDisplayName(String,NameType).
Android reference for android.icu.text.TimeZoneNames.getDisplayName.
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.