protected function getDateTime($timestamp) { $dateTime = new \DateTime(); $dateTime->setTimestamp($timestamp); return $dateTime; }