Home > Backend Development > PHP Tutorial > []java时间用php怎么获得

[]java时间用php怎么获得

WBOY
Release: 2016-06-13 13:28:33
Original
960 people have browsed it

[求助]java时间用php如何获得?
java:
代码: 
String timestamp= new java.util.Date().getTime() + "";
实例值:1338879424123

现在需要用php代码获得同样格式的时间,请问各位大虾如何写,谢谢!



------解决方案--------------------
噢,是毫秒为单位的

echo round(microtime(1)*1000);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template