title: Call to undefined method DateTime::setTimeStamp()
body: <p>I've been using setTimeStamp to convert a Unix Timestamp to a datetime in the following way:</p>
  
  <pre><code>$startHireConverted = strtotime($startHire); // converts start hire to time
  $endHireConverted = strtotime($endHire); // converts end hire to time
  
  $startdt = new DateTime();
  $startdt-&gt;setTimeStamp($startHireConverted);
  $mysql_startdate = $startdt-&gt;format("Y-m-d H:i");
  </code></pre>
  
  <p>This was working nicely, but recently I've put the website live and the version of PHP can only be 5.2.12 which doesn't support the setTimeStamp method.</p>
  
  <p>I've tried changing setTimeStamp to format which is getting rid of the errors and converting the datetime but it is changing it to the current datetime - 5 hours for some reason rather than the date stored in $startHire.</p>
  
  <p>$startdt->format($startHireConverted);</p>
  
  <p>Any ideas on how to get around this problem?</p>
  
  <p>$startHire starts out as a string version of datetime.</p>
  
  <p>Thankyou</p>