Summary
Gets the number of ticks that represent the specified date.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- DateTimeFunctions
Syntax
[Function("get-ticks")]
public static long GetTicks(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 number of ticks. |
Return Value
Type | Description |
---|---|
long | The number of ticks that represent the date and time of the specified date. |