lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
protected function getCorrectTimestamp($time)
    {
        // Get our timestamp (tricky!)
        $time = number_format($time, 0, '.', ''); // save microtime to string
        $time = bcadd($time, '11644473600000', 0); // add epoch time
        $time = bcmul($time, 10000, 0); // tenths of a microsecond.

        $binary = $this->si2bin($time, 64); // create 64 bit binary string
        $timestamp = '';
        for ($i = 0; $i < 8; ++$i) {
            $timestamp .= chr(bindec(substr($binary, -(($i + 1) * 8), 8)));
        }

        return $timestamp;
    }
protected function getCorrectTimestamp($time)
    {
        // Get our timestamp (tricky!)
        $time = number_format($time, 0, '.', ''); // save microtime to string
        $time = bcadd($time, '11644473600000', 0); // add epoch time
        $time = bcmul($time, 10000, 0); // tenths of a microsecond.

        $binary = $this->si2bin($time, 64); // create 64 bit binary string
        $timestamp = '';
        for ($i = 0; $i < 8; ++$i) {
            $timestamp .= chr(bindec(substr($binary, -(($i + 1) * 8), 8)));
        }

        return $timestamp;
    }
protected function getCorrectTimestamp ( $ time ) { // Get our timestamp (tricky!) $ time = number_format ( $ time , 0 , '.' , '' ) ; // save microtime to string $ time = bcadd ( $ time , '11644473600000' , 0 ) ; // add epoch time $ time = bcmul ( $ time , 10000 , 0 ) ; // tenths of a microsecond. $ binary = $ this -> si2bin ( $ time , 64 ) ; // create 64 bit binary string $ timestamp = '' ; for ( $ i = 0 ; $ i < 8 ; ++ $ i ) { $ timestamp .= chr ( bindec ( substr ( $ binary , - ( ( $ i + 1 ) * 8 ) , 8 ) ) ) ; } return $ timestamp ; }
Convert a normal timestamp to a tenth of a microtime epoch time.

@param string $time

@return string
Convert a normal timestamp to a tenth of a microtime epoch time .