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