ZonedDateTime.PlusDays(Int64) Method

Definition

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

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

Parameters

days
Int64

the days to add, may be negative

Returns

a ZonedDateTime based on this date-time with the days added, not null

Attributes

Remarks

Returns a copy of this ZonedDateTime with the specified number of days added. This operates on the local time-line, adding days to the local date-time. This is then converted back to a ZonedDateTime, using the zone ID to obtain the offset. When converting back to ZonedDateTime, if the local date-time is in an overlap, then the offset will be retained if possible, otherwise the earlier offset will be used. If in a gap, the local date-time will be adjusted forward by the length of the gap. This instance is immutable and unaffected by this method call.

Java reference for java.time.ZonedDateTime.plusDays.

Applies to