sp-easytime
v1.0.1
Published
Define your timers easily, for example, temporary mutes
Downloads
1
Readme
EasyTime
npm i sp-easytime
const { EasyTime } = require('sp-easytime');
const time = new EasyTime();
time.setDays(1);
time.setHours(2);
time.setMinutes(3);
time.setSeconds(4);
time.setPermanent(true);
time.toMilliseconds();
console.log(time.time); // { days: 1, hours: 2, minutes: 3, seconds: 4, permanent: true, milliseconds: 93784000 }