days
This commit is contained in:
parent
2b66107866
commit
4fe61ee773
|
|
@ -9,6 +9,7 @@ export default function () {
|
||||||
const sec = Math.floor(ms / 1000)
|
const sec = Math.floor(ms / 1000)
|
||||||
const min = Math.floor(sec / 60)
|
const min = Math.floor(sec / 60)
|
||||||
const hrs = Math.floor(min / 60)
|
const hrs = Math.floor(min / 60)
|
||||||
|
const days = Math.floor(hrs / 24)
|
||||||
|
|
||||||
return `${hrs}h ${min % 60}m ${sec % 60}s`
|
return `${days}d ${hrs % 24}h ${min % 60}m ${sec % 60}s`
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user