//yyyy-MM-dd HH:mm:ss //xxxx年xx月xx天xx时xx分xx秒 - (NSString *)dateToTime:(NSInteger)integer { NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:integer]; NSDateFormatter *dateFormate = [[NSDateFormatter alloc] init]; [dateFormate setDateFormat:@"MM-dd HH:mm"]; NSString *timeStr = [dateFormate stringFromDate:confromTimesp]; return timeStr; }
原文:http://blog.csdn.net/u013243469/article/details/44595351