How can I obtain the date object from a timestamp in PHP? -
How can I obtain the date object from a timestamp in PHP? -
how can obtain date object timestamp in php ?
e.g. $timestamp = 1349938801;
the first thing comes mind createfromformat:
$datetime = datetime::createfromformat('u', '1349938801');
php date time
Comments
Post a Comment