Partager via


DateFormatSymbols.SetZoneStrings(String[][]) Method

Definition

Sets time zone strings.

[Android.Runtime.Register("setZoneStrings", "([[Ljava/lang/String;)V", "GetSetZoneStrings_arrayarrayLjava_lang_String_Handler", ApiSince=24)]
public virtual void SetZoneStrings (string[][]? newZoneStrings);
[<Android.Runtime.Register("setZoneStrings", "([[Ljava/lang/String;)V", "GetSetZoneStrings_arrayarrayLjava_lang_String_Handler", ApiSince=24)>]
abstract member SetZoneStrings : string[][] -> unit
override this.SetZoneStrings : string[][] -> unit

Parameters

newZoneStrings
String[][]

the new time zone strings.

Attributes

Remarks

Sets time zone strings.

<b>Note</b>: SimpleDateFormat no longer uses the zone strings stored in a DateFormatSymbols. Therefore, the time zone strings set by this method have no effects in an instance of SimpleDateFormat for formatting time zones. If you want to customize time zone display names formatted by SimpleDateFormat, you should customize TimeZoneFormat and set the instance by SimpleDateFormat#setTimeZoneFormat(TimeZoneFormat) instead.

Java documentation for android.icu.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.

Applies to