MCPcopy Create free account
hub / github.com/TruthHun/BookStack / timestamp

Function timestamp

static/word2md/mammoth.browser.js:30029–30035  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30027
30028// 26 Feb 16:19:34
30029function 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

Callers 1

mammoth.browser.jsFile · 0.70

Calls 1

padFunction · 0.70

Tested by

no test coverage detected