(number)
| 305 | const results = []; |
| 306 | |
| 307 | function f(number) { |
| 308 | return number < 10 ? '0' + number : number; |
| 309 | } |
| 310 | function formatDate(lastRunTime) { |
| 311 | const date = new Date(lastRunTime); |
| 312 | return `${date.getFullYear()}-${f(date.getMonth() + 1)}-${f(date.getDate())} ${f(date.getHours())}:${f(date.getMinutes())}:${f(date.getSeconds())}`; |