Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/timers/src/util.ts>strToMs

All timing functions you need - long and async timeouts, intervals, promise timeouts and more
Latest
function strToMs
import { strToMs } from "https://deno.land/x/timers@v0.2.3/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