【发布时间】:2016-08-01 09:47:42
【问题描述】:
我正在尝试从来自 api 的时间戳中获取日期,但它会显示错误的日期。
<?php
//its from the api also its timestamp of the today
$timestamp="1460364355000";
// but it will shows the wrong date.
echo date('Y/m/d',$timestamp);
?>
当我检查上面的时间戳this website 时,它会显示正确的日期,但使用 php 我会得到错误的日期。
【问题讨论】: