another.im-ios/old/Helpers/TimeInterval+Extensions.swift

10 lines
215 B
Swift
Raw Normal View History

2024-08-11 00:28:01 +00:00
import Foundation
extension TimeInterval {
var minAndSec: String {
let minutes = Int(self) / 60
let seconds = Int(self) % 60
return String(format: "%02d:%02d", minutes, seconds)
}
}