Summary
Gets the day of the year represented by the specified date.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- DateTimeFunctions
Syntax
[Function("get-day-of-year")]
public static int GetDayOfYear(DateTime date)
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Parameters
Name | Type | Description |
---|---|---|
date | DateTime | The date of which to get the day of the year. |
Return Value
Type | Description |
---|---|
int | The day of the year, between 1 and 366. |