another.im-ios/ConversationsClassic/Helpers/Date+Extensions.swift
2024-07-04 10:47:08 +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)
}
}