Share via


DateTimeFormatter.WithDecimalStyle(DecimalStyle) Method

Definition

Returns a copy of this formatter with a new DecimalStyle.

[Android.Runtime.Register("withDecimalStyle", "(Ljava/time/format/DecimalStyle;)Ljava/time/format/DateTimeFormatter;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatter? WithDecimalStyle (Java.Time.Format.DecimalStyle? decimalStyle);
[<Android.Runtime.Register("withDecimalStyle", "(Ljava/time/format/DecimalStyle;)Ljava/time/format/DateTimeFormatter;", "", ApiSince=26)>]
member this.WithDecimalStyle : Java.Time.Format.DecimalStyle -> Java.Time.Format.DateTimeFormatter

Parameters

decimalStyle
DecimalStyle

the new DecimalStyle, not null

Returns

a formatter based on this formatter with the requested DecimalStyle, not null

Attributes

Remarks

Returns a copy of this formatter with a new DecimalStyle.

This instance is immutable and unaffected by this method call.

Java documentation for java.time.format.DateTimeFormatter.withDecimalStyle(java.time.format.DecimalStyle).

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