datetime::is-leap-year

Returns an indication whether the specified year is a leap year.
bool datetime::is-leap-year(year)

Parameters

Name Type Description
year int A 4-digit year.

Return Value

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

Requirements

Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions