Simple time converting to miliseconds
Install
npm i @jurijtokarski/times
or yarn add @jurijtokarski/times
.
getSecondsInMS
getSecondsInMS(10); // => 10000
getMinutesInMS
getMinutesInMS(10); // => 600000
getHoursInMS
getHoursInMS(10); // => 36000000
getDaysInMS
getDaysInMS(10); // => 864000000
getWeeksInMS
getWeeksInMS(10); // => 6048000000
Definitions
Feel free to check TypeScript's definitions for the package.