src/Contao/Event/Subscriber.php
private static function parseDateTime(EventDispatcherInterface $dispatcher, $dateFormat, $timeStamp)
    {
        $dateEvent = new ParseDateEvent($timeStamp, $dateFormat);
        $dispatcher->dispatch(ContaoEvents::DATE_PARSE, $dateEvent);

        return $dateEvent->getResult();
    }
private static function parseDateTime(EventDispatcherInterface $dispatcher, $dateFormat, $timeStamp)
    {
        $dateEvent = new ParseDateEvent($timeStamp, $dateFormat);
        $dispatcher->dispatch(ContaoEvents::DATE_PARSE, $dateEvent);

        return $dateEvent->getResult();
    }
private static function parseDateTime ( EventDispatcherInterface $ dispatcher , $ dateFormat , $ timeStamp ) { $ dateEvent = new ParseDateEvent ( $ timeStamp , $ dateFormat ) ; $ dispatcher -> dispatch ( ContaoEvents :: DATE_PARSE , $ dateEvent ) ; return $ dateEvent -> getResult ( ) ; }
Render a timestamp using the given format.

@param EventDispatcherInterface $dispatcher The Event dispatcher.
@param string                   $dateFormat The date format to use.
@param int                      $timeStamp  The timestamp.

@return string
Render a timestamp using the given format .