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

8 lines
178 B
Swift
Raw Normal View History

2024-04-26 20:33:11 +00:00
import Foundation
extension Date {
static func - (lhs: Date, rhs: Date) -> TimeInterval {
return lhs.timeIntervalSinceReferenceDate - rhs.timeIntervalSinceReferenceDate
}
}