(ench): Add days to time format #37

Merged
alekswilc merged 1 commits from dev into main 2024-08-27 09:33:24 +02:00

View File

@ -15,6 +15,7 @@ export const msToTime = (duration: number, long = false) => {
if (long) { if (long) {
let t = ''; let t = '';
if (time.days()) t+= `${time.days()}d `;
if (time.hours()) t+= `${time.hours()}h `; if (time.hours()) t+= `${time.hours()}h `;
if (time.minutes()) t+= `${time.minutes()}m `; if (time.minutes()) t+= `${time.minutes()}m `;
if (time.seconds()) t+= `${time.seconds()}s`; if (time.seconds()) t+= `${time.seconds()}s`;