1
我想从一个来自api的时间戳得到日期,但它会显示错误的日期。从时间戳获取日期:错误的日期在php
<?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我会得到错误的日期。
是它解决了我的问题 –
@BlessanKurien不客气:) – Panda
需要等待6分钟接受答案 –