TotalSeconds Procedure
Converts a
TimeSpan to seconds.
Declaration
function TotalSeconds(span as TimeSpan) as Number
Parameters
- span as TimeSpan — The time span to convert.
Return value
Number — A possibly fractional number of seconds.
Example
Code
dim x = Milliseconds(1500)
print TotalSeconds(x)
Output