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


Converts string to equivalent [TimeSpan](../) object.

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


| Parameter | Type | Description |
| --- | --- | --- |
| input | const String\& | Input string. |

### ReturnValue

Time interval that corresponds to string.

## See Also

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


Converts string to equivalent [TimeSpan](../) object using the specified format provider.

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


| Parameter | Type | Description |
| --- | --- | --- |
| input | const String\& | Input string. |
| provider | const SharedPtr\<IFormatProvider\>\& | Format provider that supplies culture-specific formatting information. |

### ReturnValue

Time interval that corresponds to string.

## See Also

* Class [TimeSpan](../)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PUB 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)
```

## See Also

* Class [TimeSpan](../)
* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PUB 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)
```

## See Also

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




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

## See Also

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