//得到剩余时间
-(NSString *)getExpireTime:(NSString *)expireTime
{
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
//2014-09-02 19:28:36.0 这是请求回来的字符串时间的格式
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss.S";
NSDate *expireDate = [formatter dateFromString:expireTime];
int time = [expireDate timeIntervalSinceNow];
// 时 分 秒
int h = time / 3600;
int m = time % 3600 / 60;
int s = time % 60;
return [NSString stringWithFormat:@"%02d:%02d:%02d",h,m,s];
}