wip
This commit is contained in:
18
Workouts Watch App/Utils/TimeInterval+formatted.swift
Normal file
18
Workouts Watch App/Utils/TimeInterval+formatted.swift
Normal file
@ -0,0 +1,18 @@
|
||||
//
|
||||
// TimeInterval+minutesSecons.swift
|
||||
// Workouts
|
||||
//
|
||||
// Created by rzen on 7/23/25 at 4:22 PM.
|
||||
//
|
||||
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Int {
|
||||
var secondsFormatted: String {
|
||||
let minutes = self / 60
|
||||
let seconds = self % 60
|
||||
return String(format: "%02d:%02d", minutes, seconds)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user