System::TimeSpan::Parse method

TimeSpan::Parse(const String&) method

Converts string to equivalent TimeSpan object.

static TimeSpan System::TimeSpan::Parse(const String &input)
ParameterTypeDescription
inputconst String&Input string.

ReturnValue

Time interval that corresponds to string.

See Also

TimeSpan::Parse(const String&, const SharedPtr<Globalization::CultureInfo>&) method

static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<Globalization::CultureInfo> &culture)

See Also

TimeSpan::Parse(const String&, const SharedPtr<Globalization::DateTimeFormatInfo>&) method

static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi)

See Also

TimeSpan::Parse(const String&, const SharedPtr<IFormatProvider>&) method

Converts string to equivalent TimeSpan object using the specified format provider.

static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<IFormatProvider> &provider)
ParameterTypeDescription
inputconst String&Input string.
providerconst SharedPtr<IFormatProvider>&Format provider that supplies culture-specific formatting information.

ReturnValue

Time interval that corresponds to string.

See Also

TimeSpan::Parse(const String&, std::nullptr_t) method

static TimeSpan System::TimeSpan::Parse(const String &input, std::nullptr_t)

See Also