NAnt SDK Documentation - v0.92

DateTimeFunctions.IsLeapYear Method 

Returns an indication whether the specified year is a leap year.

[Visual Basic]
<Function(Name:="is-leap-year")>
Public Shared Function IsLeapYear( _
   ByVal year As Integer _
) As Boolean
[C#]
[Function(Name="is-leap-year")]
public static bool IsLeapYear(
   int year
);

Parameters

year
A 4-digit year.

Return Value

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

See Also

DateTimeFunctions Class | NAnt.Core.Functions Namespace