Power Query
published
Search
⌃K

Duration.Hours

Duration.Hours

Returns the hours part of this duration.
function (optional duration as nullable any) as nullable any

Description

Returns the hour component of the provided duration value, duration.

Category

Duration

Examples

Find the hours in #duration(5, 4, 3, 2).
Duration.Hours(#duration(5, 4, 3, 2))
4