語言

ZonedDateTime.PlusHours(Int64) 方法

定義

回傳一份包含指定工時數的 ZonedDateTime 副本。

[Android.Runtime.Register("plusHours", "(J)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? PlusHours(long hours);
[<Android.Runtime.Register("plusHours", "(J)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.PlusHours : int64 -> Java.Time.ZonedDateTime

參數

hours
Int64

新增工時可能會是負數

傳回

基於此日期時間加上工時的 ZonedDateTime,而非空

屬性

備註

要加入。

Java 參考 java.time.ZonedDateTime.plusHours

適用於