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

x/durationjs/src/duration.ts>default.readString

Get the formated time duration
Latest
method default.readString
import { default } from "https://deno.land/x/durationjs@v4.1.1/src/duration.ts";

Read duration data from a string.

Parameters

str: string

The string to read

Returns

obj Object with days, hours, mins, seconds and milliseconds