Duration.MinusSeconds(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a copy of this duration with the specified duration in seconds subtracted.
[Android.Runtime.Register("minusSeconds", "(J)Ljava/time/Duration;", "", ApiSince=26)]
public Java.Time.Duration? MinusSeconds(long secondsToSubtract);
[<Android.Runtime.Register("minusSeconds", "(J)Ljava/time/Duration;", "", ApiSince=26)>]
member this.MinusSeconds : int64 -> Java.Time.Duration
Parameters
- secondsToSubtract
- Int64
the seconds to subtract, positive or negative
Returns
a Duration based on this duration with the specified seconds subtracted, not null
- Attributes
Remarks
Returns a copy of this duration with the specified duration in seconds subtracted. This instance is immutable and unaffected by this method call.
Java reference for java.time.Duration.minusSeconds.