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