Download apps/web/src/lib/time.ts from Atmint/cpns: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/spaces/Atmint/cpns/resolve/main/apps/web/src/lib/time.ts
- Command line
-
hf download hf://spaces/Atmint/cpns/apps/web/src/lib/time.ts
-
curl -L -o time.ts https://huggingface.co/spaces/Atmint/cpns/resolve/main/apps/web/src/lib/time.ts
205 Bytes
| export function formatTime(totalSeconds: number) { | |
| const m = Math.floor(totalSeconds / 60); | |
| const s = totalSeconds % 60; | |
| return `${m.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`; | |
| } | |