- (NSString *)getTimeFromTimestampWithInteval:(double)time{
//将对象类型的时间转换为NSDate类型
NSDate * myDate=[NSDate dateWithTimeIntervalSince1970:time];
//设置时间格式
NSDateFormatter * formatter=[[NSDateFormatter alloc]init];
[formattersetDateFormat:@"MM-dd HH:mm"];
//将时间转换为字符串
NSString*timeStr=[formatterstringFromDate:myDate];
returntimeStr;
}