ParseExact()
Contents
[
Hide
]TimeSpan::ParseExact(const String&, const ArrayPtr<String>&, const SharedPtr<IFormatProvider>&, Globalization::TimeSpanStyles) method
Converts string to equivalent TimeSpan object using the specified formats, format provider and styles.
static TimeSpan System::TimeSpan::ParseExact(const String &input, const ArrayPtr<String> &formats, const SharedPtr<IFormatProvider> &provider, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
formats | const ArrayPtr<String>& | Array of format strings. |
provider | const SharedPtr<IFormatProvider>& | Format provider that supplies culture-specific formatting information. |
styles | Globalization::TimeSpanStyles | Defines elements that may be present in input string. |
Return Value
Time interval that corresponds to string.
TimeSpan::ParseExact(const String&, const ArrayPtr<String>&, const SharedPtr<Globalization::CultureInfo>&, Globalization::TimeSpanStyles) method
static TimeSpan System::TimeSpan::ParseExact(const String &input, const ArrayPtr<String> &formats, const SharedPtr<Globalization::CultureInfo> &culture, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
TimeSpan::ParseExact(const String&, const ArrayPtr<String>&, const SharedPtr<Globalization::DateTimeFormatInfo>&, Globalization::TimeSpanStyles) method
static TimeSpan System::TimeSpan::ParseExact(const String &input, const ArrayPtr<String> &formats, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
TimeSpan::ParseExact(const String&, const ArrayPtr<String>&, std::nullptr_t, Globalization::TimeSpanStyles) method
static TimeSpan System::TimeSpan::ParseExact(const String &input, const ArrayPtr<String> &formats, std::nullptr_t, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
TimeSpan::ParseExact(const String&, const String&, const SharedPtr<IFormatProvider>&, Globalization::TimeSpanStyles) method
Converts string to equivalent TimeSpan object using the specified format, format provider and styles.
static TimeSpan System::TimeSpan::ParseExact(const String &input, const String &format, const SharedPtr<IFormatProvider> &provider, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
format | const String& | Standard or custom format string. |
provider | const SharedPtr<IFormatProvider>& | Format provider that supplies culture-specific formatting information. |
styles | Globalization::TimeSpanStyles | Defines elements that may be present in input string. |
Return Value
Time interval that corresponds to string.
TimeSpan::ParseExact(const String&, const String&, const SharedPtr<Globalization::CultureInfo>&, Globalization::TimeSpanStyles) method
static TimeSpan System::TimeSpan::ParseExact(const String &input, const String &format, const SharedPtr<Globalization::CultureInfo> &culture, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
TimeSpan::ParseExact(const String&, const String&, const SharedPtr<Globalization::DateTimeFormatInfo>&, Globalization::TimeSpanStyles) method
static TimeSpan System::TimeSpan::ParseExact(const String &input, const String &format, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
TimeSpan::ParseExact(const String&, const String&, std::nullptr_t, Globalization::TimeSpanStyles) method
static TimeSpan System::TimeSpan::ParseExact(const String &input, const String &format, std::nullptr_t, Globalization::TimeSpanStyles styles=Globalization::TimeSpanStyles::None)
See Also
- Enum TimeSpanStyles
- Typedef ArrayPtr
- Typedef SharedPtr
- Class TimeSpan
- Class String
- Class IFormatProvider
- Class CultureInfo
- Class DateTimeFormatInfo
- Namespace System
- Library Aspose.Slides