I want to format a time retrieved from the database (01:00:00) as so:
01 Hrs 00 Mins 00 Secs
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:
<strong>Start Date:</strong> <?php echo date("H"),"Hrs",date("i"),"Mins",date("s"),"Secs",strtotime($detailsSessionDuration)); ?>
Error:
Parse error: syntax error, unexpected ')', expecting ',' or ';'
Maybe: