[This is preliminary documentation and is subject to change.]

Attempts to parse the given string as a TimeSpan in compact representation. No exception is thrown if parsing failed.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
public static bool TryParseMiniTimespan(
	this string text,
	out TimeSpan result
)

Parameters

text
String
String to parse.
result
TimeSpan%
Parsed TimeSpan. Set to TimeSpan.Zero if parsing failed.

Return Value

True if parsing succeeded; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter.

Exceptions

ExceptionCondition
System..::..ArgumentNullException text is null.

See Also