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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

content management system - How to allow only English submissions on Pligg CMS -

How do I check if an insert was successful with MySQLdb in Python? -