Period.Months Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.