LocalTime.Format(DateTimeFormatter) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這次格式化是用指定的格式化器。
[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。