语言

OffsetDateTime.Format(DateTimeFormatter) 方法

定义

使用指定的格式化程序设置此日期时间的格式。

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

参数

formatter
DateTimeFormatter

要使用的格式化程序,而不是 null

返回

格式的日期/时间字符串,而不是 null

特性

注解

内容待定。

Java参考java.time.OffsetDateTime.format。

适用于