another.im-ios/ConversationsClassic/Helpers/TimeInterval+Extensions.swift
2024-07-14 20:28:54 +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)
}
}