Parse()

TimeSpan::Parse(const String&) method

Converts string to equivalent TimeSpan object.

static TimeSpan System::TimeSpan::Parse(const String &input)

Arguments

ParameterTypeDescription
inputconst String&Input string.

Return Value

Time interval that corresponds to string.

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)

Arguments

ParameterTypeDescription
inputconst String&Input string.
providerconst SharedPtr<IFormatProvider>&Format provider that supplies culture-specific formatting information.

Return Value

Time interval that corresponds to string.

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

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

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

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

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

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

See Also