objective-c获取自1970年以来的毫秒数

NSTimeInterval time=[[NSDate date] timeIntervalSince1970]*1000;  

double i=time;      //NSTimeInterval返回的是double类型  

NSLog(@"1970timeInterval:%f",i);  

原文地址:https://www.cnblogs.com/lvyinbentengzhe/p/4174788.html