Interval in seconds between two dates in Swift Nov 24, 2020 let seconds = Int(Date().timeIntervalSince(expires))