MCPcopy
hub / github.com/beekeeper-studio/beekeeper-studio / formatSeconds.ts

File formatSeconds.ts

apps/studio/src/lib/time/formatSeconds.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export default (seconds: number) => {
2 const h = Math.floor(seconds / 3600).toString().padStart(2, '0');
3 const m = Math.floor((seconds % 3600) / 60).toString().padStart(2, '0');
4 const s = (seconds % 60).toString().padStart(2, '0');

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected