System::TimeSpan::TryParse method
Contents
[
Hide
]TimeSpan::TryParse(const String&, const SharedPtr<Globalization::CultureInfo>&, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<Globalization::CultureInfo> &culture, TimeSpan &result)
See Also
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.PUB for C++
TimeSpan::TryParse(const String&, const SharedPtr<Globalization::DateTimeFormatInfo>&, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi, TimeSpan &result)
See Also
- Class String
- Typedef SharedPtr
- Class DateTimeFormatInfo
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.PUB for C++
TimeSpan::TryParse(const String&, const SharedPtr<IFormatProvider>&, TimeSpan&) method
Converts string to equivalent TimeSpan object using the specified format provider and returns result of conversion.
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<IFormatProvider> &provider, TimeSpan &result)
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
provider | const SharedPtr<IFormatProvider>& | Format provider that supplies culture-specific formatting information. |
result | TimeSpan& | Time interval that corresponds to string. |
ReturnValue
True if string was converted successfully; otherwise, false.
See Also
- Class String
- Typedef SharedPtr
- Class IFormatProvider
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.PUB for C++
TimeSpan::TryParse(const String&, std::nullptr_t, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, std::nullptr_t, TimeSpan &result)
See Also
- Class String
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.PUB for C++
TimeSpan::TryParse(const String&, TimeSpan&) method
Converts string to equivalent TimeSpan object and returns result of conversion.
static bool System::TimeSpan::TryParse(const String &input, TimeSpan &result)
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
result | TimeSpan& | Time interval that corresponds to string. |
ReturnValue
True if string was converted successfully; otherwise, false.
See Also
- Class String
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.PUB for C++