語言

LocalDateTime.WithSecond(Int32) 方法

定義

回傳一份修改過分鐘秒的 LocalDateTime 副本。

[Android.Runtime.Register("withSecond", "(I)Ljava/time/LocalDateTime;", "", ApiSince=26)]
public Java.Time.LocalDateTime? WithSecond(int second);
[<Android.Runtime.Register("withSecond", "(I)Ljava/time/LocalDateTime;", "", ApiSince=26)>]
member this.WithSecond : int -> Java.Time.LocalDateTime

參數

second
Int32

第二分鐘,從0到59分

傳回

一個基於此日期時間且請求的第二個日期時間的 LocalDateTime,而非空

屬性

備註

要加入。

Java 參考 java.time.LocalDateTime.withSecond

適用於