title: Convert seconds to readable format time
body: <p>I have variable that has seconds and I want to convert to detailed time format. I have like this at the moment.</p>
  
  <pre><code>runTime = '%s Hours:Minutes:Seconds' % time.strftime("%H:%M:%S", time.gmtime(runTime))
  </code></pre>
  
  <p>Outputs:</p>
  
  <pre><code>17:25:46 Hours:Minutes:Seconds 
  </code></pre>
  
  <p>I would like to have it formated as such:</p>
  
  <pre><code> 17 Hours 25 Minutes 46 Seconds
  </code></pre>
  
  <p>Ultimately I would like to be able shorten for smaller values:</p>
  
  <p>So if the value is minutes and seconds it would like like</p>
  
  <pre><code>15 Minutes 5 Seconds
  </code></pre>
  
  <p>and if has more then 24 hours then days</p>
  
  <pre><code>  1 Days 15 Hours 5 Minutes 1 Seconds
  </code></pre>