DateTimeFormatterBuilder.AppendFraction Method

Definition

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

[Android.Runtime.Register("appendFraction", "(Ljava/time/temporal/TemporalField;IIZ)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendFraction(Java.Time.Temporal.ITemporalField? field, int minWidth, int maxWidth, bool decimalPoint);
[<Android.Runtime.Register("appendFraction", "(Ljava/time/temporal/TemporalField;IIZ)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendFraction : Java.Time.Temporal.ITemporalField * int * int * bool -> Java.Time.Format.DateTimeFormatterBuilder

Parameters

field
ITemporalField

the field to append, not null

minWidth
Int32

the minimum width of the fraction, from zero to nine

maxWidth
Int32

the maximum width of the fraction, from one to nine

decimalPoint
Boolean

whether to output the localized decimal point

Returns

this, for chaining, not null

Attributes

Remarks

The fractional value is scaled to a fraction between zero and one based on the range of the field.

Applies to