Merge pull request '(ench): Add days to time format' (#37) from dev into main
Reviewed-on: alekswilc/simrail-logs#37 Reviewed-by: Aleksander Wilczyński <aleks@alekswilc.dev>
This commit is contained in:
commit
b934f21134
@ -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`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user