Added method to convert seconds into time string (HH:MM:SS)