码迷,mamicode.com
首页 > 其他好文 > 详细

当前毫秒时间戳

时间:2017-05-02 11:57:11      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:return   xpl   color   ptime   mic   function   时间   sprint   ret   

1     //得到当前毫秒时间戳
2     public function millStampTime()
3     {
4         list($tmp1, $tmp2) = explode(‘ ‘, microtime());
5         return (float)sprintf(‘%.0f‘, (floatval($tmp1) + floatval($tmp2)) * 1000);
6     }

 

当前毫秒时间戳

标签:return   xpl   color   ptime   mic   function   时间   sprint   ret   

原文地址:http://www.cnblogs.com/spectrelb/p/6794971.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!