ToTimeSpan()

XmlConvert::ToTimeSpan(const String&) method

Converts the String to a TimeSpan equivalent.

static TimeSpan System::Xml::XmlConvert::ToTimeSpan(const String &s)

Arguments

ParameterTypeDescription
sconst String&The string to convert. The string format must conform to the W3C XML Schema Part 2: Datatypes recommendation for duration.

Return Value

A TimeSpan equivalent of the string.

See Also