How can I convert seconds into minutes and seconds?
I am aware that you can convert seconds to minutes like so, but I don\'t know how I can get the remainder of seco
Swift
/** Returns the seconds as in clock format 02:24 */ class func formatMinuteSeconds(_ totalSeconds: Int) -> String { let minutes = Double(totalSeconds) / 60; let seconds = totalSeconds % 60; return String(format:"%02d:%02d", minutes, seconds); }