Language

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リファレンス。

適用対象