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

Tries to create a TimeSpan from a string containing the number of seconds. If the string was empty, returns false and sets result to TimeSpan.Zero

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

Syntax

   
 C# 
public static bool ToTimeSpan(
	this string str,
	out TimeSpan result
)

Parameters

str
String

[Missing <param name="str"/> documentation for "M:fCraft.DateTimeUtil.ToTimeSpan(System.String,System.TimeSpan@)"]

result
TimeSpan%

[Missing <param name="result"/> documentation for "M:fCraft.DateTimeUtil.ToTimeSpan(System.String,System.TimeSpan@)"]

Return Value

[Missing <returns> documentation for "M:fCraft.DateTimeUtil.ToTimeSpan(System.String,System.TimeSpan@)"]

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.

See Also