(ench): Add days to time format #37
@ -15,6 +15,7 @@ export const msToTime = (duration: number, long = false) => {
|
||||
|
||||
if (long) {
|
||||
let t = '';
|
||||
if (time.days()) t+= `${time.days()}d `;
|
||||
if (time.hours()) t+= `${time.hours()}h `;
|
||||
if (time.minutes()) t+= `${time.minutes()}m `;
|
||||
if (time.seconds()) t+= `${time.seconds()}s`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user