diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-12 15:21:02 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-12 15:21:02 +0800 |
commit | f1eb200c8367a62ee215fd2e4aa2e8d739aa744a (patch) | |
tree | 89a510ec344f5666f743ab65dd83243f974a5d15 /utils | |
parent | e395faaf3db958bcab87d91936a5585ad9a572c3 (diff) | |
download | SoopyV2-f1eb200c8367a62ee215fd2e4aa2e8d739aa744a.tar.gz SoopyV2-f1eb200c8367a62ee215fd2e4aa2e8d739aa744a.tar.bz2 SoopyV2-f1eb200c8367a62ee215fd2e4aa2e8d739aa744a.zip |
Added guild event thing for sbg
Diffstat (limited to 'utils')
-rw-r--r-- | utils/numberUtils.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/numberUtils.js b/utils/numberUtils.js index 63240de..1258d90 100644 --- a/utils/numberUtils.js +++ b/utils/numberUtils.js @@ -75,5 +75,12 @@ module.exports = { } return interval + '' + intervalType; + }, + timeNumber: function(time){ + let mins = Math.floor(time/1000/60) + let secs = Math.floor(time/1000)%60 + + if(mins === 0) return secs + "s" + return `${mins}m ${secs}s` } }
\ No newline at end of file |