Sdílet prostřednictvím


IChronoPeriod.Minus(ITemporalAmount) Method

Definition

Returns a copy of this period with the specified period subtracted.

[Android.Runtime.Register("minus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/chrono/ChronoPeriod;", "GetMinus_Ljava_time_temporal_TemporalAmount_Handler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Time.Chrono.IChronoPeriod? Minus (Java.Time.Temporal.ITemporalAmount? amountToSubtract);
[<Android.Runtime.Register("minus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/chrono/ChronoPeriod;", "GetMinus_Ljava_time_temporal_TemporalAmount_Handler:Java.Time.Chrono.IChronoPeriodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Minus : Java.Time.Temporal.ITemporalAmount -> Java.Time.Chrono.IChronoPeriod

Parameters

amountToSubtract
ITemporalAmount

the period to subtract, not null

Returns

a ChronoPeriod based on this period with the requested period subtracted, not null

Attributes

Remarks

Returns a copy of this period with the specified period subtracted.

If the specified amount is a ChronoPeriod then it must have the same chronology as this period. Implementations may choose to accept or reject other TemporalAmount implementations.

This instance is immutable and unaffected by this method call.

Java documentation for java.time.chrono.ChronoPeriod.minus(java.time.temporal.TemporalAmount).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to