DateTimeFormatterBuilder.AppendZoneText 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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 集合,而非空
傳回
這是鏈結時的,不是空
- 屬性
備註
當時區名稱模糊時,會使用優先區域。