TotalHours Procedure

Converts a TimeSpan to hours.
Declaration
function TotalHours(span as TimeSpan) as Number

Parameters

Return value

Number — A possibly fractional number of hours.

Example

Code
dim x = Minutes(90)
print TotalHours(x)
Output
1.5