xtd 0.2.0
Loading...
Searching...
No Matches

◆ parse()

static time_span xtd::time_span::parse ( const string value)
static

Converts the string representation of a time interval to its xtd::time_span equivalent.

Parameters
valueA string that specifies the time interval to convert.
Returns
A time interval that corresponds to value.
Exceptions
xtd::format_exceptionvalue has an invalid format.
valuerepresents a number that is less than xtd::time_span::min_value or greater than xtd::time_span::max_value.
-or-
At least one of the days, hours, minutes, or seconds components is outside its valid range.