다음을 통해 공유


DateTimeFormatter.Format(ITemporalAccessor) Method

Definition

Formats a date-time object using this formatter.

[Android.Runtime.Register("format", "(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String;", "", ApiSince=26)]
public string? Format (Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("format", "(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String;", "", ApiSince=26)>]
member this.Format : Java.Time.Temporal.ITemporalAccessor -> string

Parameters

temporal
ITemporalAccessor

the temporal object to format, not null

Returns

the formatted string, not null

Attributes

Remarks

Formats a date-time object using this formatter.

This formats the date-time to a String using the rules of the formatter.

Java documentation for java.time.format.DateTimeFormatter.format(java.time.temporal.TemporalAccessor).

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