another.im-ios/AnotherIM/Helpers/TimeInterval+Extensions.swift
2024-10-31 12:43:16 +01: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)
}
}