def getDurationString(seconds):
 secondsRounded = int(round(seconds))
 durationString = getPluralString((secondsRounded % 60), 'second')
 if (seconds < 60):
  return durationString
 durationString = ('%s %s' % (getPluralString(((secondsRounded / 60) % 60), 'minute'), durationString))
 if (seconds < 3600):
  return durationString
 return ('%s %s' % (getPluralString((secondsRounded / 3600), 'hour'), durationString))

def getDurationString ( seconds ) : secondsRounded = int ( round ( seconds ) ) durationString = getPluralString ( ( secondsRounded % 60 ) , 'second' ) if ( seconds < 60 ) : return durationString durationString = ( '%s %s' % ( getPluralString ( ( ( secondsRounded / 60 ) % 60 ) , 'minute' ) , durationString ) ) if ( seconds < 3600 ) : return durationString return ( '%s %s' % ( getPluralString ( ( secondsRounded / 3600 ) , 'hour' ) , durationString ) )
get the duration string .