(num, figs)
| 9 | const config = require('../config.js'); |
| 10 | |
| 11 | let formatDigits = (num, figs) => { |
| 12 | |
| 13 | num = (parseInt(Math.max(num, 0)) || 0).toString(); |
| 14 | let zeroes = Math.max(figs - num.length, 0); |
| 15 | return `${Array(zeroes + 1).join('0')}${num}`; |
| 16 | |
| 17 | }; |
| 18 | |
| 19 | let formatDate = function(str) { |
| 20 |