Freigeben über


Period.Months Property

Definition

Gets the amount of months of this period.

public int Months { [Android.Runtime.Register("getMonths", "()I", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getMonths", "()I", "", ApiSince=26)>]
member this.Months : int

Property Value

the amount of months of this period, may be negative

Attributes

Remarks

Gets the amount of months of this period.

This returns the months unit.

The months unit is not automatically normalized with the years unit. This means that a period of "15 months" is different to a period of "1 year and 3 months".

Java documentation for java.time.Period.getMonths().

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