AbstractChronology.IsLeapYear(Int64) Method

Definition

Checks if the specified year is a leap year.

[Android.Runtime.Register("isLeapYear", "(J)Z", "GetIsLeapYear_JHandler", ApiSince=26)]
public abstract bool IsLeapYear (long prolepticYear);
[<Android.Runtime.Register("isLeapYear", "(J)Z", "GetIsLeapYear_JHandler", ApiSince=26)>]
abstract member IsLeapYear : int64 -> bool

Parameters

prolepticYear
Int64

the proleptic-year to check, not validated for range

Returns

true if the year is a leap year

Implements

Attributes

Remarks

Checks if the specified year is a leap year.

A leap-year is a year of a longer length than normal. The exact meaning is determined by the chronology according to the following constraints. <ul> <li>a leap-year must imply a year-length longer than a non leap-year. <li>a chronology that does not support the concept of a year must return false. <li>the correct result must be returned for all years within the valid range of years for the chronology. </ul>

Outside the range of valid years an implementation is free to return either a best guess or false. An implementation must not throw an exception, even if the year is outside the range of valid years.

Java documentation for java.time.chrono.Chronology.isLeapYear(long).

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