Summary
Returns an indication whether the specified year is a leap year.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- DateTimeFunctions
Syntax
[Function("is-leap-year")]
public static bool IsLeapYear(int year)
Attributes
| Type | Description |
|---|---|
| FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
| Name | Type | Description |
|---|---|---|
| year | int | A 4-digit year. |
Return Value
| Type | Description |
|---|---|
| bool |
true if year is a leap year;
otherwise, false.
|
