- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- date_format: documentation ( source)
<?php
date_default_timezone_set("America/New_York");
$timeStamp = 1352008800;
$date= date(DateTime::ISO8601, $timeStamp);
$dateTime = new DateTime();
$dateTime->setTimestamp($timeStamp);
$dateFormat = date_format($dateTime, DateTime::ISO8601);
echo "Date: $date\nDateFormat: $dateFormat\n";