MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / floorMinute

Function floorMinute

tests/loadtest/tools/dashboard/app.js:1333–1339  ·  view source on GitHub ↗
(timestamp)

Source from the content-addressed store, hash-verified

1331}
1332
1333function floorMinute(timestamp) {
1334 const date = new Date(timestamp);
1335 if (Number.isNaN(date.getTime())) {
1336 return timestamp;
1337 }
1338 return `${date.getUTCFullYear()}-${String(date.getUTCMonth() + 1).padStart(2, "0")}-${String(date.getUTCDate()).padStart(2, "0")}T${String(date.getUTCHours()).padStart(2, "0")}:${String(date.getUTCMinutes()).padStart(2, "0")}`;
1339}
1340
1341function lastDefined(series, key) {
1342 for (let index = series.length - 1; index >= 0; index -= 1) {

Callers 1

normalizeNdjsonRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected