A NodeJS package to simplify milliseconds.
npm install fwd/time
const time = require('@fwd/time')
time(1, 'second') // 1000 ms
time(5, 'hours') // 18000000 ms
time(integer, timeInterval)
- second(s)
- minute(s)
- hour(s)
- day(s)
- month(s)
- year(s)
Give a ⭐️ if this project helped you!
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
MIT License