src/Contao/Event/Subscriber.php
private static function renderTimestampReadable(RenderReadablePropertyValueEvent $event, $extra, $value)
    {
        if (!isset($extra['rgxp'])
            || !(('date' === $extra['rgxp']) || ('time' === $extra['rgxp']) || ('datim' === $extra['rgxp']))
            || (null !== $event->getRendered())) {
            return;
        }

        $dispatcher = $event->getEnvironment()->getEventDispatcher();

        $event->setRendered(
            self::parseDateTime($dispatcher, self::getConfig()->get($extra['rgxp'] . 'Format'), $value)
        );
    }
private static function renderTimestampReadable(RenderReadablePropertyValueEvent $event, $extra, $value)
    {
        if (!isset($extra['rgxp'])
            || !(('date' === $extra['rgxp']) || ('time' === $extra['rgxp']) || ('datim' === $extra['rgxp']))
            || (null !== $event->getRendered())) {
            return;
        }

        $dispatcher = $event->getEnvironment()->getEventDispatcher();

        $event->setRendered(
            self::parseDateTime($dispatcher, self::getConfig()->get($extra['rgxp'] . 'Format'), $value)
        );
    }
private static function renderTimestampReadable ( RenderReadablePropertyValueEvent $ event , $ extra , $ value ) { if ( ! isset ( $ extra [ 'rgxp' ] ) || ! ( ( 'date' === $ extra [ 'rgxp' ] ) || ( 'time' === $ extra [ 'rgxp' ] ) || ( 'datim' === $ extra [ 'rgxp' ] ) ) || ( null !== $ event -> getRendered ( ) ) ) { return ; } $ dispatcher = $ event -> getEnvironment ( ) -> getEventDispatcher ( ) ; $ event -> setRendered ( self :: parseDateTime ( $ dispatcher , self :: getConfig ( ) -> get ( $ extra [ 'rgxp' ] . 'Format' ) , $ value ) ) ; }
Render a timestamp.

@param RenderReadablePropertyValueEvent $event The event to store the value to.
@param array                            $extra The extra data from the property.
@param int                              $value The value to format.

@return void
Render a timestamp .