another.im-ios/old/Helpers/TimeInterval+Extensions.swift
2024-08-11 13:09:29 +02:00

10 lines
215 B
Swift

import Foundation
extension TimeInterval {
var minAndSec: String {
let minutes = Int(self) / 60
let seconds = Int(self) % 60
return String(format: "%02d:%02d", minutes, seconds)
}
}