今天因为写一个搜狗发包工具,需要用到13位时间戳,php默认是没有13位时间戳函数的,于是自己写一个

  代码如下:

   

function getUnixTimestamp ()
{
    list($s1, $s2) = explode(' ', microtime());
    return (float)sprintf('%.0f',(floatval($s1) + floatval($s2)) * 1000);

}

  转自:http://www.kaotop.com/it/233928.html

相关文章:

  • 2022-02-11
  • 2022-03-07
  • 2022-01-06
  • 2021-09-29
  • 2022-12-23
  • 2021-06-07
  • 2021-11-01
  • 2021-08-12
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2022-02-09
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案