System::Xml::XmlConvert::ToTimeSpan method

XmlConvert::ToTimeSpan method

Converts the String to a TimeSpan equivalent.

static TimeSpan System::Xml::XmlConvert::ToTimeSpan(const String &s)
ParameterTypeDescription
sconst String&The string to convert. The string format must conform to the W3C XML Schema Part 2: Datatypes recommendation for duration.

ReturnValue

A TimeSpan equivalent of the string.

See Also