Skip to main content

Duration.TotalSeconds

Returns the total seconds this duration spans.

Syntax

Duration.TotalSeconds(
duration as duration
) as number

Remarks

Returns the total seconds spanned by duration.

Examples

Example #1

Find the total seconds spanned by a duration value.

Duration.TotalSeconds(#duration(5, 4, 3, 2))

Result:

446582

Category

Duration