SyntaxFix
Write A Post
Hire A Developer
Questions
The simplest way imho:
let hours = time / 3600 let minutes = (time / 60) % 60 let seconds = time % 60 return String(format: "%0.2d:%0.2d:%0.2d", hours, minutes, seconds)