Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/timers/src/util.ts>strToMs

All timing functions you need - for Deno and the browser
Go to Latest
function strToMs
import { strToMs } from "https://deno.land/x/timers@v0.2.0/src/util.ts";

Converts a string containing a time expressed as human readable in a number of milliseconds

Parameters

str: string

string to convert to milliseconds

Returns

number

number of milliseconds