Skip to main content
Module

x/durationjs/mod.ts>default.readString

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

Read duration data from a string.

Parameters

str: string

The string to read

Returns

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