Sdílet prostřednictvím


DateTimeFormatterBuilder.AppendLocalized(FormatStyle, FormatStyle) Method

Definition

Appends a localized date-time pattern to the formatter.

[Android.Runtime.Register("appendLocalized", "(Ljava/time/format/FormatStyle;Ljava/time/format/FormatStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendLocalized (Java.Time.Format.FormatStyle? dateStyle, Java.Time.Format.FormatStyle? timeStyle);
[<Android.Runtime.Register("appendLocalized", "(Ljava/time/format/FormatStyle;Ljava/time/format/FormatStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendLocalized : Java.Time.Format.FormatStyle * Java.Time.Format.FormatStyle -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

dateStyle
FormatStyle

the date style to use, null means no date required

timeStyle
FormatStyle

the time style to use, null means no time required

Returns

this, for chaining, not null

Attributes

Remarks

Java documentation for java.time.format.DateTimeFormatterBuilder.appendLocalized(java.time.format.FormatStyle, java.time.format.FormatStyle).

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