DateTimeFormatterBuilder.AppendGenericZoneText Method

Definition

Overloads

Name Description
AppendGenericZoneText(TextStyle)

Appends the generic time-zone name, such as 'Pacific Time', to the formatter.

AppendGenericZoneText(TextStyle, ICollection<ZoneId>)

Appends the generic time-zone name, such as 'Pacific Time', to the formatter.

AppendGenericZoneText(TextStyle)

Appends the generic time-zone name, such as 'Pacific Time', to the formatter.

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

Parameters

textStyle
TextStyle

the text style to use, not null

Returns

this, for chaining, not null

Attributes

Remarks

The generic name does not include daylight-saving information.

Applies to

AppendGenericZoneText(TextStyle, ICollection<ZoneId>)

Appends the generic time-zone name, such as 'Pacific Time', to the formatter.

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

Parameters

textStyle
TextStyle

the text style to use, not null

preferredZones
ICollection<ZoneId>

the set of preferred zone IDs, not null

Returns

this, for chaining, not null

Attributes

Remarks

Preferred zones are used when a time-zone name is ambiguous.

Applies to