def get_time_units(time_amount):
 time_unit = 's'
 if (time_amount > 60):
  time_amount /= 60
  time_unit = 'm'
  if (time_amount > 60):
   time_amount /= 60
   time_unit = 'h'
 return (time_amount, time_unit)

def get_time_units ( time_amount ) : time_unit = 's' if ( time_amount > 60 ) : time_amount /= 60 time_unit = 'm' if ( time_amount > 60 ) : time_amount /= 60 time_unit = 'h' return ( time_amount , time_unit )
get a nomralized length of time in the largest unit of time .