计算时间差
NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init];
[inputFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"]];
[inputFormatter setDateFormat:@"yyyy.MM.dd HH:mm:ss"];
NSDate *inputDate = [inputFormatter dateFromString:self.time];
NSDate *date = [NSDate date];
NSTimeInterval secondsInterval= [date timeIntervalSinceDate:inputDate];