DateFormatSymbols.SetZoneStrings(String[][]) 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.
Sets time zone strings.
[Android.Runtime.Register("setZoneStrings", "([[Ljava/lang/String;)V", "GetSetZoneStrings_arrayarrayLjava_lang_String_Handler")]
public virtual void SetZoneStrings (string[][]? newZoneStrings);
[<Android.Runtime.Register("setZoneStrings", "([[Ljava/lang/String;)V", "GetSetZoneStrings_arrayarrayLjava_lang_String_Handler")>]
abstract member SetZoneStrings : string[][] -> unit
override this.SetZoneStrings : string[][] -> unit
Parameters
- newZoneStrings
- String[][]
the new time zone strings.
- Attributes
Exceptions
if any row has fewer than 5 elements.
if zoneStrings == null
.
Remarks
Sets time zone strings. The argument must be a two-dimensional array of strings of size <em>n</em> by <em>m</em>, where <em>m</em> is at least 5. Each of the <em>n</em> rows is an entry containing the localized names for a single TimeZone
. Each such row contains (with i
ranging from 0..<em>n</em>-1): <ul> <li>zoneStrings[i][0]
- time zone ID</li> <li>zoneStrings[i][1]
- long name of zone in standard time</li> <li>zoneStrings[i][2]
- short name of zone in standard time</li> <li>zoneStrings[i][3]
- long name of zone in daylight saving time</li> <li>zoneStrings[i][4]
- short name of zone in daylight saving time</li> </ul> The zone ID is <em>not</em> localized; it's one of the valid IDs of the java.util.TimeZone TimeZone
class that are not custom IDs. All other entries are localized names.
Java documentation for java.text.DateFormatSymbols.setZoneStrings(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.