Language

DateTimeFormatterBuilder.AppendValueReduced Method

Definition

Overloads

Name Description
AppendValueReduced(ITemporalField, Int32, Int32, IChronoLocalDate)

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

AppendValueReduced(ITemporalField, Int32, Int32, Int32)

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

AppendValueReduced(ITemporalField, Int32, Int32, IChronoLocalDate)

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

[Android.Runtime.Register("appendValueReduced", "(Ljava/time/temporal/TemporalField;IILjava/time/chrono/ChronoLocalDate;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendValueReduced(Java.Time.Temporal.ITemporalField? field, int width, int maxWidth, Java.Time.Chrono.IChronoLocalDate? baseDate);
[<Android.Runtime.Register("appendValueReduced", "(Ljava/time/temporal/TemporalField;IILjava/time/chrono/ChronoLocalDate;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendValueReduced : Java.Time.Temporal.ITemporalField * int * int * Java.Time.Chrono.IChronoLocalDate -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

field
ITemporalField

the field to append, not null

width
Int32

the width of the reduced value, from one to ten

maxWidth
Int32

the maximum width of the reduced value, from width to ten

baseDate
IChronoLocalDate

the base date for calculating the base value, not null

Returns

this, for chaining, not null

Attributes

Remarks

The base date is used to determine the base value for the field.

Applies to

AppendValueReduced(ITemporalField, Int32, Int32, Int32)

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

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

Parameters

field
ITemporalField

the field to append, not null

width
Int32

The width of the reduced value, from one to nine.

maxWidth
Int32

The maximum width of the reduced value, from width to nine.

baseValue
Int32

The base value, within the field's valid range.

Returns

this, for chaining, not null

Attributes

Remarks

The base value defines the first value in the range of reduced values. Its sum with 10 raised to maxWidth must not exceed 2,147,483,647.

Applies to