8 lines
178 B
Swift
8 lines
178 B
Swift
|
import Foundation
|
||
|
|
||
|
extension Date {
|
||
|
static func - (lhs: Date, rhs: Date) -> TimeInterval {
|
||
|
return lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate
|
||
|
}
|
||
|
}
|