TimeSpanFunctions.

FromSeconds(double) Method

Summary

Returns a System.TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
TimeSpanFunctions

Syntax

[Function("from-seconds")]
public static TimeSpan FromSeconds(double value)

Attributes

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

Parameters

Name Type Description
value double A number of seconds, accurate to the nearest millisecond.

Return Value

Type Description
TimeSpan A System.TimeSpan that represents value.