I have a NSTimer which displays the time as "00.00.00" by using the following code :
Code:
- (void)showTime{
startTime++;
int secs = startTime % 60;
int mins = (startTime / 60) % 60;
int hour = (startTime / 3600);
lblRaceTime.text = [NSString stringWithFormat:@"%.2d:%.2d:%.2d",hour, mins, secs];
}
so if the value is displayed as "00.01.15" how can I just show 1.15 mins? and if value of the lblRaceTime is "01.10.15"(very unlikely) then show 1 hr and 10 mins. Please any advice or directions will be greatly appreciated