I have got two timevalues in the format: %H%M%S (E.G.161500)
These values are text-based integers.
Is there a simple function in Cocoa that calculates the diffe
try this code.
- (NSTimeInterval)intervalBetweenDate:(NSDate *)dt1 andDate:(NSDate *)dt2 { NSTimeInterval interval = [dt2 timeIntervalSinceDate:dt1]; NSLog(@"%f",interval); return interval;
}