Noda Time
IsLeapYear Method (year)
NamespacesNodaTimeCalendarSystemIsLeapYear(Int32)

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

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
public:
virtual bool IsLeapYear(
	int year
) abstract
Parameters
year (Int32)
The year to consider.
Return Value
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)