ms
Converts Human readable time to milliseconds
Program
- Javascript
- Typescript
const simplydjs = require("simply-djs");
import simplydjs from "simply-djs";
simplydjs.ms('human readable time')
INFO
This can be implemented anywhere. Even outside of discord.js ;)
Arguments:
simplydjs.ms(
str: string,
)
- str:
string
Returns:
<string>
// Human readable time: 0.5d 2h 3m 5s
50585000