MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / createTimestamp

Function createTimestamp

scripts/restore-drill.js:54–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function createTimestamp() {
55 const now = new Date();
56 const pad = (value) => String(value).padStart(2, '0');
57 return `${now.getUTCFullYear()}${pad(now.getUTCMonth() + 1)}${pad(now.getUTCDate())}${pad(now.getUTCHours())}${pad(now.getUTCMinutes())}${pad(now.getUTCSeconds())}`;
58}
59
60function runCommand(command, args) {
61 const result = spawnSync(command, args, {

Callers 1

runFunction · 0.70

Calls 1

padFunction · 0.70

Tested by

no test coverage detected