Period.MinusDays(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 period with the specified days subtracted.
[Android.Runtime.Register("minusDays", "(J)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? MinusDays(long daysToSubtract);
[<Android.Runtime.Register("minusDays", "(J)Ljava/time/Period;", "", ApiSince=26)>]
member this.MinusDays : int64 -> Java.Time.Period
Parameters
- daysToSubtract
- Int64
the days to subtract, positive or negative
Returns
a Period based on this period with the specified days subtracted, not null
- Attributes
Remarks
Returns a copy of this period with the specified days subtracted. This subtracts the amount from the days unit in a copy of this period. The years and months units are unaffected. For example, "1 year, 6 months and 3 days" minus 2 days returns "1 year, 6 months and 1 day". This instance is immutable and unaffected by this method call.
Java reference for java.time.Period.minusDays.