Share via


Period.IsNegative Property

Definition

Checks if any of the three units of this period are negative.

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

Property Value

true if any unit of this period is negative

Implements

Attributes

Remarks

Checks if any of the three units of this period are negative.

This checks whether the years, months or days units are less than zero.

Java documentation for java.time.Period.isNegative().

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