时间戳转换字符串
NSDate *date = [NSDatedateWithTimeIntervalSince1970:[self.model.create_timedoubleValue] / 1000+28800];
NSString *currentDateStr = [NSStringstringWithFormat:@"%@",date];//这种是带有时分秒的时间
NSString *str=[NSStringstringWithFormat:@"%@",self.model.insuranceValidityDate];//时间戳
NSTimeInterval time=[str doubleValue]+28800;//因为时差问题要加8小时 == 28800 sec
NSDate *detaildate=[NSDatedateWithTimeIntervalSince1970:time];
NSLog(@"date:%@",[detaildatedescription]);
NSTimeZone *zone1 = [NSTimeZonesystemTimeZone];
NSInteger interval1 = [zone1 secondsFromGMTForDate:self.pikerView.datePickerView.date];
NSDate *localeDate1 = [self.pikerView.datePickerView.datedateByAddingTimeInterval:interval1];
NSString *timeSp1 = [NSStringstringWithFormat:@"%ld",(long)[localeDate1timeIntervalSince1970]];
NSDate *date = [NSDate date];
NSTimeZone *zone = [NSTimeZone systemTimeZone];
NSInteger interval = [zone secondsFromGMTForDate: date];
NSDate *localeDate = [date dateByAddingTimeInterval: interval];