mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			9 lines
		
	
	
		
			219 B
		
	
	
	
		
			Swift
		
	
		
		
			
		
	
	
			9 lines
		
	
	
		
			219 B
		
	
	
	
		
			Swift
		
	
| 
								 
											4 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								public final class TimestampUtils {
							 | 
						||
| 
								 | 
							
								    
							 | 
						||
| 
								 | 
							
								    public static func isWithinOneMinute(timestamp: UInt64) -> Bool {
							 | 
						||
| 
								 | 
							
								        Date().timeIntervalSince(NSDate.ows_date(withMillisecondsSince1970: timestamp)) <= 60
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								    
							 | 
						||
| 
								 | 
							
								}
							 |