Files
workouts/Workouts Watch App/Utils/TimeInterval+formatted.swift
2025-07-25 17:42:25 -04:00

19 lines
363 B
Swift
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// TimeInterval+minutesSecons.swift
// Workouts
//
// Created by rzen on 7/23/25 at 4:22PM.
//
// 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)
}
}