Year.MinusYears(Int64) 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 Year with the specified number of years subtracted.
[Android.Runtime.Register("minusYears", "(J)Ljava/time/Year;", "", ApiSince=26)]
public Java.Time.Year? MinusYears(long yearsToSubtract);
[<Android.Runtime.Register("minusYears", "(J)Ljava/time/Year;", "", ApiSince=26)>]
member this.MinusYears : int64 -> Java.Time.Year
Parameters
- yearsToSubtract
- Int64
the years to subtract, may be negative
Returns
a Year based on this year with the year subtracted, not null
- Attributes
Remarks
Returns a copy of this Year with the specified number of years subtracted. This instance is immutable and unaffected by this method call.
Java reference for java.time.Year.minusYears.