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
Post a Comment