Format a duration in seconds as H:MM:SS (or M:SS for sub-hour
sessions) for the Library table's "Duration" column. Negative values
clamp to zero — the upstream ingestCsv already guards against
out-of-order rows, but the formatter stays defensive so a malformed
persisted session can't crash the row.
Parameters
totalSeconds: number
Duration in seconds (typically meta.duration).
Returns string
A short, human-readable timecode — "0:42", "3:07",
"1:14:25". Never returns an empty string.
Format a duration in seconds as
H:MM:SS(orM:SSfor sub-hour sessions) for the Library table's "Duration" column. Negative values clamp to zero — the upstreamingestCsvalready guards against out-of-order rows, but the formatter stays defensive so a malformed persisted session can't crash the row.