DateFormatSymbols.SetZoneStrings(String[][]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定時區的字串。
[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
參數
- newZoneStrings
- String[][]
新的時區繩索。
- 屬性
備註
設定時區的字串。
<b>註:<>SimpleDateFormat不再使用儲存在 a 中的DateFormatSymbols區域字串。 因此,此方法所設定的時區字串在 的 SimpleDateFormat 實例中對時區格式化沒有影響。 如果你想自訂以 格式化SimpleDateFormat的時區顯示名稱,應該改用 來SimpleDateFormat#setTimeZoneFormat(TimeZoneFormat)自訂TimeZoneFormat並設定實例。
Java 文件 android.icu.text.DateFormatSymbols.setZoneStrings(java.lang.String[][])。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。