NAnt SDK Documentation - v0.92 |

# DateTimeFunctions.GetTicks Method

Gets the number of ticks that represent the specified date.

[Visual Basic]
<Function(Name:="get-ticks")>
Public Shared Function GetTicks( _
ByVal date As Date _
) As Long
[C#]
[Function(Name="get-ticks")]
public static long GetTicks(
DateTime date
);

#### Parameters

date
  The date of which to get the number of ticks.

#### Return Value

The number of ticks that represent the date and time of the specified date.

#### See Also

DateTimeFunctions Class | NAnt.Core.Functions Namespace