言語

Duration.WithSeconds(Int64) メソッド

定義

指定した秒数でこの期間のコピーを返します。

[Android.Runtime.Register("withSeconds", "(J)Ljava/time/Duration;", "", ApiSince=26)]
public Java.Time.Duration? WithSeconds(long seconds);
[<Android.Runtime.Register("withSeconds", "(J)Ljava/time/Duration;", "", ApiSince=26)>]
member this.WithSeconds : int64 -> Java.Time.Duration

パラメーター

seconds
Int64

表す秒は負の値である可能性があります。

返品

a Duration based based on this duration with the requested seconds, not null

属性

注釈

追加する。

Javaリファレンス。

適用対象