Period.MinusYears(Int64) Method

Definition

Returns a copy of this period with the specified years subtracted.

[Android.Runtime.Register("minusYears", "(J)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? MinusYears(long yearsToSubtract);
[<Android.Runtime.Register("minusYears", "(J)Ljava/time/Period;", "", ApiSince=26)>]
member this.MinusYears : int64 -> Java.Time.Period

Parameters

yearsToSubtract
Int64

the years to subtract, positive or negative

Returns

a Period based on this period with the specified years subtracted, not null

Attributes

Remarks

To be added.

Java reference for java.time.Period.minusYears.

Applies to