//时间戳:1520915618
- (NSString *)getTimeFromTimesTamp:(NSString *)timeStr
{
double time = [timeStr doubleValue];
NSDate *myDate = [NSDate dateWithTimeIntervalSince1970:time];
NSDateFormatter *formatter = [NSDateFormatter new];
[formatter setDateFormat:@"YYYY-MM-dd HH:mm"];
//将时间转换为字符串
NSString *timeS = [formatter stringFromDate:myDate];
return timeS;
}