Method Hours
Hours(Int32)
Returns a System.TimeSpan representing the specified number of hours.
Declaration
public static TimeSpan Hours(this int hours)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | hours | The number of hours in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |
Hours(Int64)
Returns a System.TimeSpan representing the specified number of hours.
Declaration
public static TimeSpan Hours(this long hours)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | hours | The number of hours in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |
Hours(Double)
Returns a System.TimeSpan representing the specified number of hours.
Declaration
public static TimeSpan Hours(this double hours)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | hours | The number of hours in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |
Hours(Single)
Returns a System.TimeSpan representing the specified number of hours.
Declaration
public static TimeSpan Hours(this float hours)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | hours | The number of hours in the time span. |
Returns
| Type | Description |
|---|---|
| System.TimeSpan | A System.TimeSpan. |