mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 10:45:00 +00:00
Updated msToTime function
This commit is contained in:
1 parent
ca494df400
commit
d524649ad5
1 file changed
+1
-1
@@ -1,5 +1,5 @@
|
||||
module.exports = function msToTime(duration) {
|
||||
var seconds = Math.floor((duration / 1000) % 60),
|
||||
let seconds = Math.floor((duration / 1000) % 60),
|
||||
minutes = Math.floor((duration / (1000 * 60)) % 60),
|
||||
hours = Math.floor((duration / (1000 * 60 * 60)) % 24),
|
||||
days = Math.floor((duration / (1000 * 60 * 60 * 24)));
|
||||
|
||||
Reference in new issue
Block a user