Cronario\Logger\Journal::getCurrentDate PHP 메소드

getCurrentDate() 보호된 메소드

protected getCurrentDate ( ) : string
리턴 string
    protected function getCurrentDate()
    {
        $t = microtime(true);
        $micro = sprintf("%06d", ($t - floor($t)) * 1000000);
        $d = new \DateTime(date('Y-m-d H:i:s.' . $micro, $t));
        $result = $d->format('Y-m-d H:i:s.u');
        return $result;
    }