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

jquery - Invalid Assignment Left-Hand Side -

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

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -