NAnt SDK Documentation - v0.92

TimeSpanFunctions.FromSeconds Method 

Returns a TimeSpan that represents a specified number of seconds, where the specification is accurate to the nearest millisecond.

[Visual Basic]
<Function(Name:="from-seconds")>
Public Shared Function FromSeconds( _
   ByVal value As Double _
) As TimeSpan
[C#]
[Function(Name="from-seconds")]
public static TimeSpan FromSeconds(
   double value
);

Parameters

value
A number of seconds, accurate to the nearest millisecond.

Return Value

A TimeSpan that represents value.

See Also

TimeSpanFunctions Class | NAnt.Core.Functions Namespace