Duration.Negated 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 length negated.
[Android.Runtime.Register("negated", "()Ljava/time/Duration;", "", ApiSince=26)]
public Java.Time.Duration? Negated();
[<Android.Runtime.Register("negated", "()Ljava/time/Duration;", "", ApiSince=26)>]
member this.Negated : unit -> Java.Time.Duration
Returns
a Duration based on this duration with the amount negated, not null
- Attributes
Remarks
Returns a copy of this duration with the length negated. This method swaps the sign of the total length of this duration. For example, PT1.3S will be returned as PT-1.3S. This instance is immutable and unaffected by this method call.
Java reference for java.time.Duration.negated.