func clocktimeFromMinutes(rawminutes: Double) -> String {
// Converts minutes to normal clocktime
let rawhours = rawminutes/60
let rawseconds = 60*rawminutes
let hours = Int(rawhours)
let minutes = Int(rawminutes) % 60
let seconds = Int(rawseconds) % 60
return "Time " + String(hours) + ":" + String(minutes)
+ ":" + String(seconds)
}
print(clocktimeFromMinutes(rawminutes: 740.639497054913))
To embed this project on your website, copy the following code and paste it into your website's HTML: