Int
public extension Int
-
Converts a value in seconds into a tuple of minutes and seconds, e.g. 99 → (1, 39).
Hours will be displayed in minutes.
Declaration
Swift
func secondsToMinutesAndSeconds() -> (minutes: Int, seconds: Int)
-
Adds leading zero to Int if needed, e.g. 5 → 05, 15 → 15, -5 → -05
Declaration
Swift
func toTwoDigitsString() -> String
Return Value
Modified value as String.