TotalSeconds Procedure

Converts a TimeSpan to seconds.
Declaration
function TotalSeconds(span as TimeSpan) as Number

Parameters

Return value

Number — A possibly fractional number of seconds.

Example

Code
dim x = Milliseconds(1500)
print TotalSeconds(x)
Output
1.5