Getting unix timestamp in milliseconds in PHP5 and Actionscript3

后端 未结 12 2563
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 09:58

In Actionscript, the Unix timestamp in milliseconds is obtainable like this:

public static function getTimeStamp():uint
        {
            var now:Date =          


        
12条回答
  •  感情败类
    2020-12-16 10:32

    Simple answer for PHP:

    function exact_time() {
        $t = explode(' ',microtime());
        return ($t[0] + $t[1]);
    }
    

提交回复
热议问题