mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 06:33:18 +00:00
Updated msToTime function
This commit is contained in:
parent
ca494df400
commit
d524649ad5
@ -1,5 +1,5 @@
|
|||||||
module.exports = function msToTime(duration) {
|
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),
|
minutes = Math.floor((duration / (1000 * 60)) % 60),
|
||||||
hours = Math.floor((duration / (1000 * 60 * 60)) % 24),
|
hours = Math.floor((duration / (1000 * 60 * 60)) % 24),
|
||||||
days = Math.floor((duration / (1000 * 60 * 60 * 24)));
|
days = Math.floor((duration / (1000 * 60 * 60 * 24)));
|
||||||
|
Loading…
Reference in New Issue
Block a user