Convert time interval to hours, minutes, seconds