TMBASIC
Documentation
Docs
GitHub
TMBASIC Documentation
►
Procedures: Dates and Times
TotalHours
Procedure
Converts a
TimeSpan
to hours.
Declaration
function TotalHours(span as TimeSpan) as Number
Parameters
span
as
TimeSpan
— The time span to convert.
Return value
Number
— A possibly fractional number of hours.
Example
Code
dim x = Minutes(90)
print TotalHours(x)
Output
1.5