轻松获取格林尼治Linux时间戳

轻松获取格林尼治Linux时间戳

/**
 * 获取格林尼治时间戳
 *
 * @access public
 * @return interger
 */
if( ! function_exists('gmtime'))
{
    function gmtime()
    {
        $gmt = date('Z');
        return ($gmt > 0) ? time() - $gmt : time() + $gmt;
    }
}



你可能感兴趣的:(linux,时间戳,格林尼治)