Description
Creates a TimeSpan from a string value.
Timing Precision Mode
This page describes functionality in nanosecond timing precision mode.
Method Signature
Arguments
value
|
|
Description:
|
A decimal string representation of a TimeSpan in the specified units.
|
units
|
|
Description:
|
The units with which to interpret the TimeSpan string.
|
Valid Values:
|
Value
|
Label
|
"day"
|
days
|
"hr"
|
hours
|
"min"
|
minutes
|
"s"
|
seconds
|
"ms"
|
milliseconds
|
"us"
|
microseconds
|
"ns"
|
nanoseconds
|
|
Return Value
Type:
|
timespan
|
Units:
|
day
|
Returns the created TimeSpan representing the string value.
Syntax
myTimeSpan1 = TimeSpan.Parse(myString1, myString2);
|
See also
TimeSpan Object
TimeSpan.Parse
TimeSpans Guide
Parsing Dates and Times
|