共用方式為


Month.Minus(Int64) Method

Definition

Returns the month-of-year that is the specified number of months before this one.

[Android.Runtime.Register("minus", "(J)Ljava/time/Month;", "", ApiSince=26)]
public Java.Time.Month? Minus (long months);
[<Android.Runtime.Register("minus", "(J)Ljava/time/Month;", "", ApiSince=26)>]
member this.Minus : int64 -> Java.Time.Month

Parameters

months
Int64

the months to subtract, positive or negative

Returns

the resulting month, not null

Attributes

Remarks

Returns the month-of-year that is the specified number of months before this one.

The calculation rolls around the start of the year from January to December. The specified period may be negative.

This instance is immutable and unaffected by this method call.

Java documentation for java.time.Month.minus(long).

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