NAnt SDK Documentation - v0.92 |

# TimeSpanConversionFunctions.ToString Method (TimeSpan)

Converts the specified TimeSpan to its equivalent string representation.

[Visual Basic]
<Function(Name:="to-string")>
Overloads Public Shared Function ToString( _
ByVal value As TimeSpan _
) As String
[C#]
[Function(Name="to-string")]
public static string ToString(
TimeSpan value
);

#### Parameters

value
  A TimeSpan to convert.

#### Return Value

The string representation of value. The format of the return value is of the form: [-][d.]hh:mm:ss[.ff].

#### See Also

TimeSpanConversionFunctions Class | NAnt.Core.Functions Namespace | TimeSpanConversionFunctions.ToString Overload List