How can I convert a NSTimeInterval to NSDate? Think of it like a stopwatch. I want the initial date to be 00:00:00, and I have a NSTimeInterv
As Josh answer detailed the correct way, if you still want the interval to be in the NSDate format you can use the following method
+ (NSDate *) dateForHour:(int) hour andMinute: (int) minute{
NSDateComponents * components = [NSDateComponents new];
components.hour = hour;
components.minute = minute;
NSDate * retDate = [[NSCalendar currentCalendar] dateFromComponents:components];
return retDate;}