NSNumber of seconds to Hours, minutes, seconds
Have you tried creating an NSDate from that and printing that using an NSDateFormatter? NSDate *date = [NSDate dateWithTimeIntervalSince1970:[theNumber doubleValue]]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@”HH:mm:ss”]; NSLog(@”%@”, [formatter stringFromDate:date]); [formatter release]; If you need the individual values for hours, minutes, and seconds, use NSDateComponents as suggested by nall. The above won’t print the … Read more