Duration.Plus Method

Definition

Overloads

Name Description
Plus(Duration)

Returns a copy of this duration with the specified duration added.

Plus(Int64, ITemporalUnit)

Returns a copy of this duration with the specified duration added.

Plus(Duration)

Returns a copy of this duration with the specified duration added.

[Android.Runtime.Register("plus", "(Ljava/time/Duration;)Ljava/time/Duration;", "", ApiSince=26)]
public Java.Time.Duration? Plus(Java.Time.Duration? duration);
[<Android.Runtime.Register("plus", "(Ljava/time/Duration;)Ljava/time/Duration;", "", ApiSince=26)>]
member this.Plus : Java.Time.Duration -> Java.Time.Duration

Parameters

duration
Duration

the duration to add, positive or negative, not null

Returns

a Duration based on this duration with the specified duration added, not null

Attributes

Remarks

Returns a copy of this duration with the specified duration added. This instance is immutable and unaffected by this method call.

Java reference for java.time.Duration.plus.

Applies to

Plus(Int64, ITemporalUnit)

Returns a copy of this duration with the specified duration added.

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

Parameters

amountToAdd
Int64

the amount to add, measured in terms of the unit, positive or negative

unit
ITemporalUnit

the unit that the amount is measured in, must have an exact duration, not null

Returns

a Duration based on this duration with the specified duration added, not null

Attributes

Remarks

To be added.

Java reference for java.time.Duration.plus.

Applies to