title: iOS How to create countdown time [hours,minutes,seccond] Swift 4
body: <p>I want create countdown time, but i can not find such information how i can do this.</p>
  
  <p>For example i have <strong>200 minutes it's <em>3,3 hours</em>.</strong></p>
  
  <p>For this <strong>3,3 hours</strong> i want make count down timer, and this information can i see at the label?</p>
  
  <p>How i can do this?</p>
  
  <p>I found such code at the forum:</p>
  
  <pre><code>func startTimer() {
  
      let releaseDateString = "03:33:00"
      let releaseDateFormatter = DateFormatter()
      releaseDateFormatter.dateFormat = "HH:mm:ss"
      releaseDate = releaseDateFormatter.date(from: releaseDateString)! as NSDate
  
      countdownTimer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(updateTime), userInfo: nil, repeats: true)
  }
  
  @objc func updateTime() {
  
      let currentDate = Date()
      let calendar = Calendar.current
  
      let diffDateComponents = calendar.dateComponents([.hour, .minute, .second], from: currentDate, to: releaseDate! as Date)
  
      let countdown = "Hours \(diffDateComponents.hour ?? 0), Minutes \(diffDateComponents.minute ?? 0), Seconds \(diffDateComponents.second ?? 0)"
      label.text = "\(countdown)"
  
      print(countdown)
  }
  </code></pre>
  
  <p>But i got such result:</p>
  
  <blockquote>
    <p>Hours -163779, Minutes -48, Seconds -34</p>
  </blockquote>