Skip to main content
Module

x/durationjs/mod.ts>default.fromString

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

Reads a given string and parses a duration from it.

Parameters

str: string

A string which could contain a duration

optional
doNotParse = [UNSUPPORTED]

Directly return the values read