title: How to get current time in seconds and adds with player duration in Swift?
body: <p>I want to get the current time in seconds and adds the seconds with player duration and other double value.</p>
  <p>Heres the code I tried but didn't work.</p>
  <pre><code>let date = Date()
          let calendar = Calendar.current
          let now = calendar.component(.second, from: date)
          let start_time = now + player.duration + (myModel.diff * 60)
  </code></pre>
  <p>The code for myModel.diff</p>
  <pre><code>var diff: Double = 1
  </code></pre>
  <p>and when I try this code, I'm getting error saying</p>
  <blockquote>
  <p>Binary operator '+' cannot be applied to operands of type 'Int' and 'TimeInterval' (aka 'Double')</p>
  </blockquote>
  <p>Please help me to solve this issue</p>