NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSDate * date = [dateFormatter dateFromString:[NSString stringWithFormat:@"%04d-%02d-%02d %02d:%02d:00",2008,08,08,08,08]];
long long time=roundl([date timeIntervalSince1970])*1000;//指定时间的时间戳
long long time=roundl([[NSdate date] timeIntervalSince1970])*1000;//当前时间的时间戳