datetime::get-year

Gets the year component of the specified date.

Usage

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 (0.92.4543.0)