Rocket.Chat.ReactNative/ios/RocketChat Watch App/Extensions/Date+Extensions.swift

8 lines
178 B
Swift

import Foundation
extension Date {
static func - (lhs: Date, rhs: Date) -> TimeInterval {
return lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate
}
}