ZonedDateTime.Plus Method

Definition

Overloads

Name Description
Plus(Int64, ITemporalUnit)

Returns a copy of this date-time with the specified amount added.

Plus(ITemporalAmount)

Returns a copy of this date-time with the specified amount added.

Plus(Int64, ITemporalUnit)

Returns a copy of this date-time with the specified amount added.

[Android.Runtime.Register("plus", "(JLjava/time/temporal/TemporalUnit;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.Temporal.ITemporal? Plus(long amountToAdd, Java.Time.Temporal.ITemporalUnit? unit);
[<Android.Runtime.Register("plus", "(JLjava/time/temporal/TemporalUnit;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
abstract member Plus : int64 * Java.Time.Temporal.ITemporalUnit -> Java.Time.Temporal.ITemporal
override this.Plus : int64 * Java.Time.Temporal.ITemporalUnit -> Java.Time.Temporal.ITemporal

Parameters

amountToAdd
Int64

the amount of the unit to add to the result, may be negative

unit
ITemporalUnit

the unit of the amount to add, not null

Returns

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

Attributes

Remarks

To be added.

Java reference for java.time.ZonedDateTime.plus.

Applies to

Plus(ITemporalAmount)

Returns a copy of this date-time with the specified amount added.

[Android.Runtime.Register("plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/ZonedDateTime;", "", ApiSince=26)]
public Java.Time.ZonedDateTime? Plus(Java.Time.Temporal.ITemporalAmount? amountToAdd);
[<Android.Runtime.Register("plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/ZonedDateTime;", "", ApiSince=26)>]
member this.Plus : Java.Time.Temporal.ITemporalAmount -> Java.Time.ZonedDateTime

Parameters

amountToAdd
ITemporalAmount

the amount to add, not null

Returns

a ZonedDateTime based on this date-time with the addition made, not null

Attributes

Remarks

Returns a copy of this date-time with the specified amount added. This returns a ZonedDateTime, based on this one, with the specified amount added. The amount is typically Period or Duration but may be any other type implementing the TemporalAmount interface. The calculation is delegated to the amount object by calling TemporalAmount.addTo(Temporal). The amount implementation is free to implement the addition in any way it wishes, however it typically calls back to plus(long, TemporalUnit). Consult the documentation of the amount implementation to determine if it can be successfully added. This instance is immutable and unaffected by this method call.

Java reference for java.time.ZonedDateTime.plus.

Applies to