LocalDateTime.Year 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 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)
. To obtain the year-of-era, use get(YEAR_OF_ERA)
.
Java documentation for java.time.LocalDateTime.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.