登录注册

18250178511

php获取当前毫秒时间戳

作者:admin      时间:2018-01-02 14:02:00

php没有自带的函数能获取毫秒时间戳,但提供了一个microtime()函数,如果调用时不带可选参数,本函数以 "msec sec" 的格式返回一个字符串,其中 sec 是自 Unix 纪元(0:00:00 January 1, 1970 GMT)起到现在的秒数,msec 是微秒部分。字符串的两部分都是以秒为单位返回的。

  1. list($msec, $sec) = explode(' ', microtime());
  2. $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec)) * 1000);

发表评论

评论列表

匿名

purchase losartan online - <a href="https://losartann.com/">cozaar 50mg sale</a> buy promethazine 25mg generic

2022-06-28 20:02:23

匿名

Liver disease such as cirrhosis and chronic hepatitis causes increased pressure in veins near and around the liver portal hypertension. https://newfasttadalafil.com/ - discreet cialis meds Kamagra Oral Jelly Buono Gocgnr <a href=https://newfasttadalafil.com/>Cialis</a> ante https://newfasttadalafil.com/ - cialis online prescription

2022-06-28 15:27:16

匿名

order clopidogrel 150mg online cheap - <a href="https://metocloprami.com/">order metoclopramide 20mg sale</a> purchase metoclopramide pills

2022-06-27 02:55:46

匿名

flexeril 15mg pills - <a href="https://rpropranolol.com/">inderal ca</a> inderal cheap

2022-06-25 09:32:30

匿名

accutane 20mg ca - <a href="https://risotretinoin.com/">isotretinoin 20mg drug</a> tetracycline drug

2022-06-23 15:33:14