Period.Negated Method

Definition

Returns a new instance with each amount in this period negated.

[Android.Runtime.Register("negated", "()Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? Negated();
[<Android.Runtime.Register("negated", "()Ljava/time/Period;", "", ApiSince=26)>]
member this.Negated : unit -> Java.Time.Period

Returns

a Period based on this period with the amounts negated, not null

Attributes

Remarks

Returns a new instance with each amount in this period negated. This returns a period with each of the years, months and days units individually negated. For example, a period of "2 years, -3 months and 4 days" will be negated to "-2 years, 3 months and -4 days". No normalization is performed.

Java reference for java.time.Period.negated.

Applies to