## TimeSpan::FromHours method


Returns a new [TimeSpan](../) object that represents the specified interval.

```cpp
static TimeSpan System::TimeSpan::FromHours(double value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | double | The time interval expressed as the number of hours. |

### ReturnValue

A new [TimeSpan](../) object that represents the specified interval.

## See Also

* Class [TimeSpan](../)
* Class [TimeSpan](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
