Mondoo Docs
Built-in FunctionsTime

hours

hours

Return the hours component of a time or duration.


Examples

Get the hours value of the current time:

now.hours

Extract hours from a parsed duration:

parse.duration("1h30m15s").hours

On this page