()
| 30027 | |
| 30028 | // 26 Feb 16:19:34 |
| 30029 | function timestamp() { |
| 30030 | var d = new Date(); |
| 30031 | var time = [pad(d.getHours()), |
| 30032 | pad(d.getMinutes()), |
| 30033 | pad(d.getSeconds())].join(':'); |
| 30034 | return [d.getDate(), months[d.getMonth()], time].join(' '); |
| 30035 | } |
| 30036 | |
| 30037 | |
| 30038 | // log is just a thin wrapper to console.log that prepends a timestamp |