Trying to convert from seconds to date
<p>Okay so I have an array of results from a table, we have a start and end time we are retrieving. the start/end time would look something like this: </p>

<pre><code>1345497551   
</code></pre>

<p>Now I'm trying to convert this to a real time, for instance <code>1345497551</code> might become <code>2012/05/09 17:23:12</code>  or something. I've found a few things but none seem to work correctly. one solution I tried, according to what someone was saying on another question on here, was </p>

<pre><code>$createdate = date('H:i:s',$numberofsecs);  
</code></pre>

<p>where <code>$numberofsecs</code> was the time pulled in from the array. but this only ever outputs <code>17:00:00</code> repeatedly for every time we had available for testing. </p>

<p>How can I go about making this work correctly? </p>
