The difference between two NSDate
objects is obtained using the [NSDate timeIntervalSinceDate:]
method (reference) and is expressed as a NSTimeInterval
(a typedef
'd double
):
NSTimeInterval difference = [self.checkOutStamp timeIntervalSinceDate:self.checkInStamp];
NSLog(@"Difference is %f seconds", difference);