CalendarSystem IsLeapYear Method Noda Time

[This is preliminary documentation and is subject to change.]

Returns whether or not the given year is a leap year in this calendar.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: (

public bool IsLeapYear(
	int year

Return Value

Type: OnlineBoolean
True if the given year is a leap year; false otherwise.

OnlineSystem ArgumentOutOfRangeExceptionThe given year is invalid for this calendar. Note that some implementations may return a value rather than throw this exception. Failure to throw an exception should not be treated as an indication that the year is valid.
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also