MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / timestamp

Function timestamp

lib/web/jshint.js:1341–1347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1339
1340// 26 Feb 16:19:34
1341function 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

Callers 1

jshint.jsFile · 0.85

Calls 1

padFunction · 0.85

Tested by

no test coverage detected