开发者

Retrieving date time value upto a millisecond using the DATE() function

开发者 https://www.devze.com 2023-01-07 18:27 出处:网络
By using the function Date(ymdHis) i am able to retrieve the value of the current date and time until seconds.

By using the function Date(ymdHis) i am able to retrieve the value of the current date and time until seconds.

I wanted to find 开发者_高级运维out what do we need to do so that we retrieve even until a milli second.


microtime() returns the current time with microseconds. You will have to parse them by hand, though, date() can deal only with second-based timestamps.

Check out this User Contributed Note for an example on how to deal with it.

0

精彩评论

暂无评论...
验证码 换一张
取 消