hms(total_seconds) formatting a duration as 'H:MM:SS' (hours unpadded, minutes/seconds zero-padded). Use divmod twice — no datetime needed for pure durations.hms(3725)
'1:02:05'
3725 s = 1 h, 2 min, 5 s.
divmod(total, 3600) then divmod(rest, 60).
f-string {m:02d} pads.