mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 20:23:16 +00:00
Updated msToTime function
This commit is contained in:
parent
ca494df400
commit
d524649ad5
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user