Language

OffsetDateTime.PlusDays(Int64) Method

Definition

Returns a copy of this OffsetDateTime with the specified number of days added.

[Android.Runtime.Register("plusDays", "(J)Ljava/time/OffsetDateTime;", "", ApiSince=26)]
public Java.Time.OffsetDateTime? PlusDays(long days);
[<Android.Runtime.Register("plusDays", "(J)Ljava/time/OffsetDateTime;", "", ApiSince=26)>]
member this.PlusDays : int64 -> Java.Time.OffsetDateTime

Parameters

days
Int64

the days to add, may be negative

Returns

an OffsetDateTime based on this date-time with the days added, not null

Attributes

Remarks

Returns a copy of this OffsetDateTime with the specified number of days added. This method adds the specified amount to the days field incrementing the month and year fields as necessary to ensure the result remains valid. The result is only invalid if the maximum/minimum year is exceeded. For example, 2008-12-31 plus one day would result in 2009-01-01. This instance is immutable and unaffected by this method call.

Java reference for java.time.OffsetDateTime.plusDays.

Applies to