Läs på engelska

Dela via


Period.ToTotalMonths Method

Definition

Gets the total number of months in this period.

C#
[Android.Runtime.Register("toTotalMonths", "()J", "", ApiSince=26)]
public long ToTotalMonths();

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.

Applies to

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35