System::TimeSpan::Parse 方法
内容
[
隐藏
]TimeSpan::Parse(const String&) method
将字符串转换为等效的 TimeSpan 对象。
static TimeSpan System::TimeSpan::Parse(const String &input)
| 参数 | 类型 | 描述 |
|---|---|---|
| 输入 | const String& | 输入字符串。 |
ReturnValue
与字符串对应的时间间隔。
另见
- Class TimeSpan
- Class String
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::Parse(const String&, const SharedPtr<Globalization::CultureInfo>&) method
static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<Globalization::CultureInfo> &culture)
另见
- Class TimeSpan
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::Parse(const String&, const SharedPtr<Globalization::DateTimeFormatInfo>&) method
static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi)
另见
- Class TimeSpan
- Class String
- Typedef SharedPtr
- Class DateTimeFormatInfo
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::Parse(const String&, const SharedPtr<IFormatProvider>&) method
使用指定的格式提供程序将字符串转换为等效的 TimeSpan 对象。
static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<IFormatProvider> &provider)
| 参数 | 类型 | 描述 |
|---|---|---|
| 输入 | const String& | 输入字符串。 |
| 提供程序 | const SharedPtr<IFormatProvider>& | 提供特定文化格式信息的格式提供程序。 |
ReturnValue
与字符串对应的时间间隔。
另见
- Class TimeSpan
- Class String
- Typedef SharedPtr
- Class IFormatProvider
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::Parse(const String&, std::nullptr_t) method
static TimeSpan System::TimeSpan::Parse(const String &input, std::nullptr_t)
另见
- Class TimeSpan
- Class String
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++