Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/denouse/use/datetime/mod.ts>useDuration

Util functions for Deno
Latest
function useDuration
import { useDuration } from "https://deno.land/x/denouse@v0.0.12/use/datetime/mod.ts";

Convert milliseconds into a duration object.

Parameters

ms: number

Duration in milliseconds.

Returns

Duration

A duration object.