語言

DateTimeFormatterBuilder.AppendZoneText 方法

定義

多載

名稱 Description
AppendZoneText(TextStyle)

會在格式化器後附加時區名稱,例如「英國夏令時間」。

AppendZoneText(TextStyle, ICollection<ZoneId>)

會在格式化器後附加時區名稱,例如「英國夏令時間」。

AppendZoneText(TextStyle)

會在格式化器後附加時區名稱,例如「英國夏令時間」。

[Android.Runtime.Register("appendZoneText", "(Ljava/time/format/TextStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendZoneText(Java.Time.Format.TextStyle? textStyle);
[<Android.Runtime.Register("appendZoneText", "(Ljava/time/format/TextStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendZoneText : Java.Time.Format.TextStyle -> Java.Time.Format.DateTimeFormatterBuilder

參數

textStyle
TextStyle

文字樣式要用,不是 null

傳回

這是鏈結時的,不是空

屬性

備註

java.time.format.DateTimeFormatterBuilder.appendZoneText(java.time.format.TextStyle)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

AppendZoneText(TextStyle, ICollection<ZoneId>)

會在格式化器後附加時區名稱,例如「英國夏令時間」。

[Android.Runtime.Register("appendZoneText", "(Ljava/time/format/TextStyle;Ljava/util/Set;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendZoneText(Java.Time.Format.TextStyle? textStyle, System.Collections.Generic.ICollection<Java.Time.ZoneId>? preferredZones);
[<Android.Runtime.Register("appendZoneText", "(Ljava/time/format/TextStyle;Ljava/util/Set;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendZoneText : Java.Time.Format.TextStyle * System.Collections.Generic.ICollection<Java.Time.ZoneId> -> Java.Time.Format.DateTimeFormatterBuilder

參數

textStyle
TextStyle

文字樣式要用,不是 null

preferredZones
ICollection<ZoneId>

優先區域 ID 集合,而非空

傳回

這是鏈結時的,不是空

屬性

備註

當時區名稱模糊時,會使用優先區域。

適用於