Skip to main content
Module

x/durationjs/mod.ts>default#setHours

Get the formated time duration
Go to Latest
method default.prototype.setHours
import { default } from "https://deno.land/x/durationjs@v4.0.1/mod.ts";

Set hours of the duration.

Parameters

n: number

Number of hours to set.

Returns

The updated duration.