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

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

Get the formated time duration
Latest
method Duration.readString
import { Duration } 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