+ (NSString *)getDatePlaySeconds:(NSString *)playSeconds{
NSString *timeStr;
NSTimeInterval time=[playSeconds doubleValue]+28800;
NSDate *detaildate=[NSDate dateWithTimeIntervalSince1970:time];
//当前时间
NSDate *newDate = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone];
NSTimeInterval timeSystem = [zone secondsFromGMTForDate:newDate];
NSDate *nowDate = [newDate dateByAddingTimeInterval:timeSystem];
//获取时间间隔
NSTimeInterval timeCount = [nowDate timeIntervalSinceDate:detaildate];
if (timeCount < 60) {
timeStr = @"刚刚";
} else if (timeCount >= 60 && timeCount < 3600) {
timeStr = [NSString stringWithFormat:@"%d分钟前", (int)timeCount / 60];
} else if(timeCount > 3600 && timeCount < 3600 * 24) {
timeStr = [NSString stringWithFormat:@"%d小时前", (int)timeCount / 3600];
}else{
NSString *str = [NSString stringWithFormat:@"%@", detaildate];
timeStr = [str substringWithRange:NSMakeRange(5, 5)];
}
return timeStr;
}