Home > php教程 > php手册 > PHP 返回13位时间戳的实现代码,php13位

PHP 返回13位时间戳的实现代码,php13位

WBOY
Release: 2016-06-13 08:39:18
Original
1634 people have browsed it

PHP 返回13位时间戳的实现代码,php13位

13位时间戳生成函数如下所示:

private function getMillisecond() { 
  list($t1, $t2) = explode(' ', microtime()); 
  return (float)sprintf('%.0f',(floatval($t1)+floatval($t2))*1000); 
} 
Copy after login

以上这篇PHP 返回13位时间戳的实现代码就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持帮客之家。

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template