ZonedDateTime.Year Property

Definition

Gets the year field.

C#
public int Year { [Android.Runtime.Register("getYear", "()I", "", ApiSince=26)] get; }

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). To obtain the year-of-era, use get(YEAR_OF_ERA).

Java documentation for java.time.ZonedDateTime.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

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