- date: documentation ( source)
- date_default_timezone_get: documentation ( source)
<?php
echo date_default_timezone_get() ."\n";
$at = '@';
$epochTime = '1490281920';
$timeZone = new DateTimeZone('Europe/Brussels');
$date = new DateTime($at.$epochTime);
$dateWithZone = new DateTime($at.$epochTime, $timeZone);
echo date('Y-m-d H;i:s', $epochTime)."\n";
echo $date->format('Y-m-d H:i:s')."\n";
echo $dateWithZone->format('Y-m-d H:i:s')."\n";