Sdílet prostřednictvím


DateTimeFormatterBuilder.AppendOptional(DateTimeFormatter) Method

Definition

Appends a formatter to the builder which will optionally format/parse.

[Android.Runtime.Register("appendOptional", "(Ljava/time/format/DateTimeFormatter;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendOptional (Java.Time.Format.DateTimeFormatter? formatter);
[<Android.Runtime.Register("appendOptional", "(Ljava/time/format/DateTimeFormatter;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendOptional : Java.Time.Format.DateTimeFormatter -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

formatter
DateTimeFormatter

the formatter to add, not null

Returns

this, for chaining, not null

Attributes

Remarks

Java documentation for java.time.format.DateTimeFormatterBuilder.appendOptional(java.time.format.DateTimeFormatter).

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