語言

LocalTime.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.LocalTime.format

適用於