语言

OffsetTime.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.OffsetTime.format。

适用于