NSTimeInterval time=[[NSDate date] timeIntervalSince1970]*1000;
double t = time;
NSLog(@"%f",t);
若要取到整数的秒,去掉*1000舍去后面的小数便可
NSTimeInterval time=[[NSDate date] timeIntervalSince1970]*1000;
double t = time;
NSLog(@"%f",t);
若要取到整数的秒,去掉*1000舍去后面的小数便可