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

[]java时间用php怎么获得

WBOY
WBOYOriginal
2016-06-13 13:28:33939browse

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

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



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

echo round(microtime(1)*1000);

Statement:
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