function convertToTime(seconds) var thex var they var thez var mind mind = Int(seconds) thex = mind Mod 60 if thex = 0 thex = mind / 60 else mind = (int(mind ) - int(thex)) end they = mind Mod 3600 if they = 0 they = mind / 3600 else mind = mind - they end thez = mind / 60 theTime = thez/60 + ":" + they/60 + ":" + thex return theTime end