iOS时间间隔判断
如何计算两个NSDate之间的时间间隔呢? timeIntervalSinceDate: Returns the interval between the receiver and another given date. - (NSTimeInterval)timeIntervalSinceDate:(NSDate *)anotherDate
NSTimeInterval返回的是一个double值,单位是秒 – timeIntervalSince1970 计算从1970年以来经过的timeInterval – timeIntervalSinceNow 计算从现在
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号