MCPcopy Index your code
hub / github.com/apache/echarts / formatDate

Function formatDate

test/runTest/client/client.js:1089–1093  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

1087}, { deep: true });
1088
1089function formatDate(timestamp) {
1090 const date = new Date(timestamp);
1091 const pad = num => (num < 10 ? '0' + num : num);
1092 return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;
1093}

Callers 1

processTestsDataFunction · 0.70

Calls 1

padFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…