How can I obtain the date object from a timestamp in PHP ?
e.g. $timestamp = 1349938801;
How can I obtain the date object from a timestamp in PHP ?
e.g. $timestamp = 1349938801;
The first thing that comes to mind is createFromFormat:
$datetime = DateTime::createFromFormat('U', '1349938801');