MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / formatDateTime

Function formatDateTime

devtools/panel.bundle.js:2386–2395  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

2384 }
2385
2386 function formatDateTime(timestamp) {
2387 const date = new Date(timestamp);
2388 const year = date.getFullYear();
2389 const month = String(date.getMonth() + 1).padStart(2, '0');
2390 const day = String(date.getDate()).padStart(2, '0');
2391 const hours = String(date.getHours()).padStart(2, '0');
2392 const minutes = String(date.getMinutes()).padStart(2, '0');
2393 const seconds = String(date.getSeconds()).padStart(2, '0');
2394 return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
2395 }
2396
2397 // Column resizer module
2398

Callers 2

showSaveConnectionModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected