title: Return multiple values from a function in swift
body: <p>How do I return 3 separate data values of the same type(Int) from a function in swift?</p>
  
  <p>I'm attempting to return the time of day, I need to return the Hour, Minute and Second as separate integers, but all in one go from the same function, is this possible?</p>
  
  <p>I think I just don't understand the syntax for returning multiple values. This is the code I'm using, I'm having trouble with the last(return) line.</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <pre><code>func getTime() -&gt; Int
  {
      let date = NSDate()
      let calendar = NSCalendar.currentCalendar()
      let components = calendar.components(.CalendarUnitHour | .CalendarUnitMinute | .CalendarUnitSecond, fromDate: date)
      let hour = components.hour
      let minute = components.minute
      let second = components.second
      let times:String = ("\(hour):\(minute):\(second)")
      return hour, minute, second
  }
  </code></pre>