TimeSpanFunctions.

GetTicks(TimeSpan) Method

Summary

Returns the number of ticks contained in the specified System.TimeSpan.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
TimeSpanFunctions

Syntax

[Function("get-ticks")]
public static long GetTicks(TimeSpan value)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
value TimeSpan A System.TimeSpan.

Return Value

Type Description
long The number of ticks contained in the given System.TimeSpan.