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