php - vBulletin date decode from database -


i need use information vbulletin database using external script. need decode join/last visit date. found in database 06-02-2012 in database encoded 1338661020. how decode 06-02-2012 (in php) ?

alternatively, can use datetime (which more robust solution).

$date = new datetime('@1338661020'); echo $date->format(date_atom); 

this allows handle things custom timezones per-user easily.

more info available on php.net: http://us3.php.net/manual/en/book.datetime.php


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -