DateFormatSymbols.GetZoneStrings 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 time zone strings.
[Android.Runtime.Register("getZoneStrings", "()[[Ljava/lang/String;", "GetGetZoneStringsHandler", ApiSince=24)]
public virtual string[][]? GetZoneStrings ();
[<Android.Runtime.Register("getZoneStrings", "()[[Ljava/lang/String;", "GetGetZoneStringsHandler", ApiSince=24)>]
abstract member GetZoneStrings : unit -> string[][]
override this.GetZoneStrings : unit -> string[][]
Returns
the time zone strings.
- Attributes
Remarks
Returns time zone strings.
The array returned by this API is a two dimensional String array and each row contains at least following strings: <ul> <li>ZoneStrings[n][0] - System time zone ID <li>ZoneStrings[n][1] - Long standard time display name <li>ZoneStrings[n][2] - Short standard time display name <li>ZoneStrings[n][3] - Long daylight saving time display name <li>ZoneStrings[n][4] - Short daylight saving time display name </ul> When a localized display name is not available, the corresponding array element will be null
.
<b>Note</b>: ICU implements the time zone display name formatting algorithm specified by UTS#35 Unicode Locale Data Markup Language(LDML). The algorithm supports historic display name changes and various different types of names not available in java.text.DateFormatSymbols#getZoneStrings()
. For accessing the full set of time zone string data used by ICU implementation, you should use TimeZoneNames
APIs instead.
Java documentation for android.icu.text.DateFormatSymbols.getZoneStrings()
.
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.