Skip to content

hours

Converts a number to equivalent hours.

hours(x:number) -> duration

This function returns hours equivalent to a number, i.e., number * 1h.

The number to convert.

years, months, weeks, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds