Hi. Whats wrong here?
Code:
hour = total_sec /3600;
  min = total_sec % 60;
  sec = min % 60;