NSTimeInterval time = [[NSDate date] timeIntervalSince1970];
time *=1000.0;
long long dTime = [[NSNumber numberWithDouble:time] longLongValue]; // 将double转为long long型
NSString *curTime = [NSString stringWithFormat:@"%llu",dTime]; // 输出long long型
NSLog(@"---------time:%@",curTime);