Cronario\Logger\Journal::getCurrentDate PHP Method

getCurrentDate() protected method

protected getCurrentDate ( ) : string
return 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;
    }