protected function formatTime(
        \Plop\RecordInterface $record,
        $dateFormat = self::DEFAULT_DATE_FORMAT
    ) {
        $date = clone $record['createdDate'];
        if ($this->timezone !== null) {
            $date->setTimeZone($this->timezone);
        }
        return $date->format((string) $dateFormat);
    }
protected function formatTime(
        \Plop\RecordInterface $record,
        $dateFormat = self::DEFAULT_DATE_FORMAT
    ) {
        $date = clone $record['createdDate'];
        if ($this->timezone !== null) {
            $date->setTimeZone($this->timezone);
        }
        return $date->format((string) $dateFormat);
    }
protected function formatTime ( \ Plop \ RecordInterface $ record , $ dateFormat = self :: DEFAULT_DATE_FORMAT ) { $ date = clone $ record [ 'createdDate' ] ; if ( $ this -> timezone !== null ) { $ date -> setTimeZone ( $ this -> timezone ) ; } return $ date -> format ( ( string ) $ dateFormat ) ; }
Format the creation date of a log record.

\param Plop::RecordInterface $record
The log record whose creation date will be
formatted.

\param string $dateFormat
(optional) The format to apply.
By default, Plop::Formatter::DEFAULT_DATE_FORMAT
is used.

\see
The documentation from the PHP manual on the
<a href="http://php.net/date">date()</a>
function for a list of valid format specifiers.
Format the creation date of a log record .