How to convert java timestamp to php timestamp?

前端 未结 8 1886
我寻月下人不归
我寻月下人不归 2020-12-20 18:02

how can I convert a Java timestamp like this one 1335997853142 to a format that php can read? 1335997853142 should be 02 May 2012 22:30:53

8条回答
  •  情深已故
    2020-12-20 18:52

    It's a timestamp in microtime

    Use

    $time = date("whatever you need", $javatime / 1000);
    

提交回复
热议问题