标签:
(NSString *)dateToTime:(NSInteger)integer {
NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:integer];
NSDateFormatter *dateFormate = [[NSDateFormatter alloc] init];
[dateFormate setDateFormat:@"MM-dd HH:mm"];//IOS mm必须是小写
NSString *timeStr = [dateFormate stringFromDate:confromTimesp];
return timeStr; }
标签:
原文地址:http://www.cnblogs.com/android-wuwei/p/4685973.html