Period.ToTotalMonths Method
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 total number of months in this period.
[Android.Runtime.Register("toTotalMonths", "()J", "", ApiSince=26)]
public long ToTotalMonths ();
[<Android.Runtime.Register("toTotalMonths", "()J", "", ApiSince=26)>]
member this.ToTotalMonths : unit -> int64
Returns
the total number of months in the period, may be negative
- Attributes
Remarks
Gets the total number of months in this period.
This returns the total number of months in the period by multiplying the number of years by 12 and adding the number of months.
This instance is immutable and unaffected by this method call.
Java documentation for java.time.Period.toTotalMonths()
.
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.