title: Converting Int to minutes & display in text box swift 3
body: <p>I am currently learning Swift. I have added a UISlider that controls the number within a text box (where I am displaying an int).</p>
  
  <p>I have found a function to convert the input into hours/minutes/seconds but I am still trying to work out how to call this conversion function then update the value within the text box.</p>
  
  <p>To convert to Hours/Minutes/Seconds </p>
  
  <pre><code>//Define
  
  func secondsToHoursMinutesSeconds (seconds : Int) -&gt; (Int, Int, Int){
      return (seconds / 3600, (seconds % 3600) / 60, (seconds % 3600) % 60)
  }
  
  //Use
  secondsToHoursMinutesSeconds(27005)
  (7,30,5)
  </code></pre>
  
  <p>The current UI Slider</p>
  
  <pre><code>@IBAction func valueSelection(_ sender: UISlider) {   
      timeAmount.text = String(Int(sender.value))     
  }
  </code></pre>