datetime::get-year

Gets the year component of the specified date.
int datetime::get-year(date)

Parameters

Name Type Description
date DateTime The date of which to get the year component.

Return Value

The year, between 1 and 9999.

Requirements

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