Share via


Duration.IsZero Property

Definition

Checks if this duration is zero length.

public bool IsZero { [Android.Runtime.Register("isZero", "()Z", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isZero", "()Z", "", ApiSince=26)>]
member this.IsZero : bool

Property Value

true if this duration has a total length equal to zero

Attributes

Remarks

Checks if this duration is zero length.

A Duration represents a directed distance between two points on the time-line and can therefore be positive, zero or negative. This method checks whether the length is zero.

Java documentation for java.time.Duration.isZero().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to