Noda Time
IsLeapYear Method (year)
NamespacesNodaTimeCalendarSystemIsLeapYear(Int32)
Returns whether or not the given year is a leap year in this calendar.
Declaration Syntax
C#Visual BasicVisual C++
public bool IsLeapYear(
	int year
)
Public Function IsLeapYear ( 
	year As Integer
) As Boolean
public:
bool IsLeapYear(
	int year
)
Parameters
year (Int32)
The year to consider.
Return Value
Boolean
True if the given year is a leap year; false otherwise.
Exceptions
ExceptionCondition
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.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)