()
| 1339 | |
| 1340 | // 26 Feb 16:19:34 |
| 1341 | function timestamp() { |
| 1342 | var d = new Date(); |
| 1343 | var time = [pad(d.getHours()), |
| 1344 | pad(d.getMinutes()), |
| 1345 | pad(d.getSeconds())].join(':'); |
| 1346 | return [d.getDate(), months[d.getMonth()], time].join(' '); |
| 1347 | } |
| 1348 | |
| 1349 | |
| 1350 | // log is just a thin wrapper to console.log that prepends a timestamp |