Hot to format time as '00 Hrs 00 Mins 00 Secs'?
<p>I want to format a time retrieved from the database (01:00:00) as so:</p>

<pre><code>01 Hrs 00 Mins 00 Secs
</code></pre>

<p>But the following attempt has not worked and is giving me errors so my question is how can I get the format I want for the time above:</p>

<pre><code>&lt;strong&gt;Start Date:&lt;/strong&gt; &lt;?php echo date("H"),"Hrs",date("i"),"Mins",date("s"),"Secs",strtotime($detailsSessionDuration)); ?&gt;
</code></pre>

<p>Error:</p>

<p><code>Parse error: syntax error, unexpected ')', expecting ',' or ';'</code></p>
