## TimeSpan::Parse(const String\&) method


将字符串转换为等效的 [TimeSpan](../) 对象。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 输入 | const String\& | 输入字符串。 |

### ReturnValue

与字符串对应的时间间隔。

## 另见

* Class [TimeSpan](../)
* Class [String](../../string/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TimeSpan::Parse(const String\&, const SharedPtr\<Globalization::CultureInfo\>\&) method




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

## 另见

* Class [TimeSpan](../)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TimeSpan::Parse(const String\&, const SharedPtr\<Globalization::DateTimeFormatInfo\>\&) method




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

## 另见

* Class [TimeSpan](../)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [DateTimeFormatInfo](../../../system.globalization/datetimeformatinfo/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TimeSpan::Parse(const String\&, const SharedPtr\<IFormatProvider\>\&) method


使用指定的格式提供程序将字符串转换为等效的 [TimeSpan](../) 对象。

```cpp
static TimeSpan System::TimeSpan::Parse(const String &input, const SharedPtr<IFormatProvider> &provider)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 输入 | const String\& | 输入字符串。 |
| 提供程序 | const SharedPtr\<IFormatProvider\>\& | 提供特定文化格式信息的格式提供程序。 |

### ReturnValue

与字符串对应的时间间隔。

## 另见

* Class [TimeSpan](../)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
## TimeSpan::Parse(const String\&, std::nullptr_t) method




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

## 另见

* Class [TimeSpan](../)
* Class [String](../../string/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
