mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
8 lines
219 B
Swift
8 lines
219 B
Swift
|
|
public final class TimestampUtils {
|
|
|
|
public static func isWithinOneMinute(timestamp: UInt64) -> Bool {
|
|
Date().timeIntervalSince(NSDate.ows_date(withMillisecondsSince1970: timestamp)) <= 60
|
|
}
|
|
|
|
}
|