LocalDate.Minus Method

Definition

Overloads

Name Description
Minus(Int64, ITemporalUnit)

Returns a copy of this date with the specified amount subtracted.

Minus(ITemporalAmount)

Returns a copy of this date with the specified amount subtracted.

Minus(Int64, ITemporalUnit)

Returns a copy of this date with the specified amount subtracted.

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

Parameters

amountToSubtract
Int64

the amount of the unit to subtract from the result, may be negative

unit
ITemporalUnit

the unit of the amount to subtract, not null

Returns

a LocalDate based on this date with the specified amount subtracted, not null

Attributes

Remarks

To be added.

Java reference for java.time.LocalDate.minus.

Applies to

Minus(ITemporalAmount)

Returns a copy of this date with the specified amount subtracted.

[Android.Runtime.Register("minus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/LocalDate;", "", ApiSince=26)]
public Java.Time.LocalDate? Minus(Java.Time.Temporal.ITemporalAmount? amountToSubtract);
[<Android.Runtime.Register("minus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/LocalDate;", "", ApiSince=26)>]
member this.Minus : Java.Time.Temporal.ITemporalAmount -> Java.Time.LocalDate

Parameters

amountToSubtract
ITemporalAmount

the amount to subtract, not null

Returns

a LocalDate based on this date with the subtraction made, not null

Attributes

Remarks

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

Java reference for java.time.LocalDate.minus.

Applies to