MCPcopy Create free account
hub / github.com/develop202/migu_video / getDateTimeStr

Function getDateTimeStr

utils/time.js:14–17  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

12}
13
14function getDateTimeStr(date) {
15 return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")} ` +
16 `${String(date.getHours()).padStart(2, "0")}:${String(date.getMinutes()).padStart(2, "0")}:${String(date.getSeconds()).padStart(2, "0")}`
17}
18
19function getLogDateTime(date) {
20 return `${getDateTimeStr(date)}:${String(date.getMilliseconds()).padStart(3, "0")}`

Callers 2

app.jsFile · 0.90
getLogDateTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected