(timestamp)
| 1331 | } |
| 1332 | |
| 1333 | function 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 | |
| 1341 | function lastDefined(series, key) { |
| 1342 | for (let index = series.length - 1; index >= 0; index -= 1) { |
no outgoing calls
no test coverage detected