php 怎么获取一个时间的毫秒时间类似js的Date.UTC函数

WBOY
Release: 2016-06-13 13:22:13
Original
865 people have browsed it

php 如何获取一个时间的毫秒时间类似js的Date.UTC函数
这个是js Date.UTC(2011, 10, 16,17,01)

php如何获取一个指定时间的毫秒时间如 2011-10-11 15:32 ,怎么得到他的unix时间戳精确到毫秒

------解决方案--------------------
time()
strtotime()
------解决方案--------------------
microtime -- 返回当前 Unix 时间戳和微秒数

------解决方案--------------------
mocrotime(true)返回的当前时间的微秒数。

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