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

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

WBOY
WBOYOriginal
2016-06-13 08:39:181567browse

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

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

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

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

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