1.0.2 • Published 3 years ago
time-to-ms v1.0.2
what is this
The package that converts time to milliseconds.
Installattion
npm install time-to-ms
const ms = require("time-to-ms")
ms("1s") //1000 milisecond
ms("1m") //60000 milisecond
ms("1h") //3600000 milisecond
ms("1d") //86400000 milisecond
ms("1w") //604800000 milisecond
ms("1y") //31557600000 milisecond
Arguments
- s = seconds
- m = minutes
- h = hours
- d = days
- w = week
- y = years