title: How to get current time in Swift?
body: <p>I'm trying to get the current time, and I've done this so far:</p>
  
  <pre><code>    let date = NSDate()
      let calender = NSCalendar.currentCalendar()
      let components = calender.component([.Hour, .Minute], fromDate: date)
  </code></pre>
  
  <p>And I then try to get the hour of the components</p>
  
  <pre><code>    let hour = components.hour
  </code></pre>
  
  <p>This give me <em>"Value of type "Int" has no member 'hour'"</em>. Any suggestions?</p>