Mono Class Library: System.DateTime Overview | Members

System.DateTime.IsLeapYear Method

Returns a bool value indicating whether a specified year is a leap year.

public static bool IsLeapYear (int year)

Parameters

year
A int representing the year. year can be positive or negative.

Returns

true if the specified year is a leap year; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0