NAnt SDK Documentation - v0.92 |

# TimeSpanFunctions.GetTotalHours Method

Returns the total number of hours represented by the specified TimeSpan, expressed in whole and fractional hours.

[Visual Basic]
<Function(Name:="get-total-hours")>
Public Shared Function GetTotalHours( _
ByVal value As TimeSpan _
) As Double
[C#]
[Function(Name="get-total-hours")]
public static double GetTotalHours(
TimeSpan value
);

#### Parameters

value
  A TimeSpan.

#### Return Value

The total number of hours represented by the given TimeSpan.

#### See Also

TimeSpanFunctions Class | NAnt.Core.Functions Namespace