CalendarSystem IsLeapYear Method Noda Time
Returns whether or not the given year is a leap year in this calendar.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public bool IsLeapYear(
	int year
)

Return Value

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

ExceptionCondition
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