Unix timestamp handling in php and mysql

Unix timestamp handling in php and mysql

In Mysql
SELECT from_unixtime(last_login_date)
FROM `user`
LIMIT 50

In Php
echo time();
echo strtotime($date[0]).”<br>”;
echo date(‘m/d/Y’, 1535104800);



Leave a Reply