Round timestamps

This commit is contained in:
Kuba Orlik 2023-12-28 13:11:25 +01:00
parent 2ecaa54e18
commit 5f65223be0

View File

@ -34,6 +34,7 @@ function parseTimestamp(s: string): number {
}
function toTimestamp(n: number): string {
n = Math.floor(n);
return `${Math.floor(n / 60)
.toString()
.padStart(2, "0")}:${(n % 60).toString().padStart(2, "0")}`;