NAnt SDK Documentation - v0.85-nightly-2005-11-09

TimeSpanConversionFunctions.Parse Method 

[This is preliminary documentation and subject to change.]

Constructs a TimeSpan from a time indicated by a specified string.

[Visual Basic]
<Function(Name:="parse")>
Public Shared Function Parse( _
   ByVal s As String _
) As TimeSpan
[C#]
[Function(Name="parse")]
public static TimeSpan Parse(
   string s
);

Parameters

s
A string.

Return Value

A TimeSpan that corresponds to s.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.TimeSpanConversionFunctions.Parse(System.String)

Exceptions

Exception Type Condition
FormatException s has an invalid format.
OverflowException At least one of the hours, minutes, or seconds components is outside its valid range.

See Also

TimeSpanConversionFunctions Class | NAnt.Core.Functions Namespace