Freigeben über


YearMonth.Year Property

Definition

Gets the year field.

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

Property Value

the year, from MIN_YEAR to MAX_YEAR

Attributes

Remarks

Gets the year field.

This method returns the primitive int value for the year.

The year returned by this method is proleptic as per get(YEAR).

Java documentation for java.time.YearMonth.getYear().

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