标签:
//创建时间
NSInteger numTime = [dict[@"createTime"][@"time"] longLongValue]/1000;
NSDate *nowTime = [NSDate dateWithTimeIntervalSince1970:numTime];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
NSString *dateString = [dateFormat stringFromDate:nowTime];
cd.createTime = dateString;
标签:
原文地址:http://www.cnblogs.com/yw2015/p/5000332.html