登录注册

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);

发表评论

评论列表

匿名

Whoa a lot of beneficial information. <a href="https://cbd-oil-trust.com/">kratom capsules</a> <a href="https://viagrapython.com/">female viagra pills</a> <a href="https://cbdhempoiltrust.com/">cbd oil amazon</a> <a href="https://viagradocker.com/">viagra results before and after</a> <a href="https://ciaonlinebuyntx.com/">cialis without a doctor prescription</a> <a href="https://viagradjango.com/">viagra substitutes that work</a> <a href="https://safeonlinecanadian.com/">drugs from canada</a>

2020-02-20 06:17:26

匿名

You said it superbly! <a href="https://viaonlinebuyntx.com/">cheap viagra</a> <a href="https://cbd-oil-trust.com/">hemp oil vs cbd oil</a> <a href="https://ciaonlinebuyntx.com/">Cialis For Overactive Bladder</a> <a href="https://viagradocker.com/">roman viagra</a> <a href="https://cialistl.com/">buy cialis usa</a> <a href="https://canadianpharmacyopen.com/">canadian pharmacies shipping to usa</a> <a href="https://trustedwebpharmacy.com/">northwest pharmacy canada</a>

2020-02-20 05:34:45

匿名

Nicely put, Regards! <a href="https://ciaonlinebuyntx.com/">cialis without a doctor prescription</a>

2020-02-20 05:34:45

匿名

With thanks! An abundance of tips! <a href="https://canadianpharmaceuticalsonlinerx.com/">canadian pharmacies without an rx</a>

2020-02-20 05:34:45

匿名

Helpful tips. Thanks a lot. <a href="https://ciaonlinebuyntx.com/">generic cialis</a> <a href="https://cbd-oil-trust.com/">what is cbd</a> <a href="https://cialistl.com/">cialis pills</a> <a href="https://canadianonlinepharmacytrust.com/">cheap medications</a> <a href="https://viagrapython.com/">what is viagra used for</a> <a href="https://safeonlinecanadian.com/">canadian online pharmacy</a> <a href="https://trustedwebpharmacy.com/">canadian pharmacies that are legit</a>

2020-02-20 02:34:20