Skip to main content

Duration.TotalHours

Returns the total hours this duration spans.

Syntax

Duration.TotalHours(
duration as duration
) as number

Remarks

Returns the total hours spanned by duration.

Examples

Example #1

Find the total hours spanned by a duration value.

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

Result:

124.05055555555555

Category

Duration