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

◆ parse< time_span >()

template<>
xtd::time_span xtd::parse< time_span > ( const std::string &  str)
inline

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

Namespace
xtd
Library
xtd.core
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.