title: TimeInterval in Swift
body: <p>Hi I need to convert this piece of code in Objective-c to Swift
  <a href="https://i.stack.imgur.com/blBrT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/blBrT.png" alt="Objective-C code"></a>
  but I'm having problem with Date and TimeInterval objects.
  <a href="https://i.stack.imgur.com/afYQg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/afYQg.png" alt="Swift code"></a>
  Swift version: 3
  Xcode version: 8.0 beta</p>
  
  <p><strong>EDIT:</strong>
  Is this a possible solution?
  <a href="https://i.stack.imgur.com/QJPxt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QJPxt.png" alt="Possible solution"></a></p>
  
  <p><strong>EDIT 2:</strong>
  <a href="https://i.stack.imgur.com/9bDTQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9bDTQ.png" alt="enter image description here"></a></p>