Period.PlusDays(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 added.
[Android.Runtime.Register("plusDays", "(J)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? PlusDays(long daysToAdd);
[<Android.Runtime.Register("plusDays", "(J)Ljava/time/Period;", "", ApiSince=26)>]
member this.PlusDays : int64 -> Java.Time.Period
Parameters
- daysToAdd
- Int64
the days to add, positive or negative
Returns
a Period based on this period with the specified days added, not null
- Attributes
Remarks
Returns a copy of this period with the specified days added. This adds the amount to 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" plus 2 days returns "1 year, 6 months and 5 days". This instance is immutable and unaffected by this method call.
Java reference for java.time.Period.plusDays.