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 -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

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