Getting unix timestamp in milliseconds in PHP5 and Actionscript3

后端 未结 12 2578
被撕碎了的回忆
被撕碎了的回忆 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:58

    Something like this:

    $mili_sec_time = $_SERVER['REQUEST_TIME_FLOAT'] * 1000;

    Gives float type representing miliseconds from UNIX epoch to starts of the request.

提交回复
热议问题