DateTimeFormatterBuilder.AppendValue Method

Definition

Overloads

Name Description
AppendValue(ITemporalField, Int32)

Appends the value of a date-time field to the formatter using a fixed width, zero-padded number.

AppendValue(ITemporalField, Int32, Int32, SignStyle)

Appends the value of a date-time field to the formatter.

AppendValue(ITemporalField)

Appends the value of a date-time field to the formatter using a normal output style.

AppendValue(ITemporalField, Int32)

Appends the value of a date-time field to the formatter using a fixed width, zero-padded number.

[Android.Runtime.Register("appendValue", "(Ljava/time/temporal/TemporalField;I)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendValue(Java.Time.Temporal.ITemporalField? field, int width);
[<Android.Runtime.Register("appendValue", "(Ljava/time/temporal/TemporalField;I)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendValue : Java.Time.Temporal.ITemporalField * int -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

field
ITemporalField

the field to append, not null

width
Int32

the width of the value, from one to nineteen

Returns

this, for chaining, not null

Attributes

Remarks

The fixed width requires exactly the specified number of digits during parsing.

Applies to

AppendValue(ITemporalField, Int32, Int32, SignStyle)

Appends the value of a date-time field to the formatter.

[Android.Runtime.Register("appendValue", "(Ljava/time/temporal/TemporalField;IILjava/time/format/SignStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendValue(Java.Time.Temporal.ITemporalField? field, int minWidth, int maxWidth, Java.Time.Format.SignStyle? signStyle);
[<Android.Runtime.Register("appendValue", "(Ljava/time/temporal/TemporalField;IILjava/time/format/SignStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendValue : Java.Time.Temporal.ITemporalField * int * int * Java.Time.Format.SignStyle -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

field
ITemporalField

the field to append, not null

minWidth
Int32

the minimum width of the value, from one to nineteen

maxWidth
Int32

the maximum width of the value, from one to nineteen

signStyle
SignStyle

the style of the sign to output, not null

Returns

this, for chaining, not null

Attributes

Remarks

The value uses the specified width range and sign style.

Applies to

AppendValue(ITemporalField)

Appends the value of a date-time field to the formatter using a normal output style.

[Android.Runtime.Register("appendValue", "(Ljava/time/temporal/TemporalField;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendValue(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("appendValue", "(Ljava/time/temporal/TemporalField;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendValue : Java.Time.Temporal.ITemporalField -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

field
ITemporalField

the field to append, not null

Returns

this, for chaining, not null

Attributes

Remarks

The value is printed using a variable-width number with the normal sign style.

Applies to