toSeconds

Converts a duration to a float of seconds.

float
toSeconds
(
Duration dur
)

Parameters

dur
Type: Duration

The duration to convert.

Return Value

Type: float

The duration in seconds.

Meta