public function fromRedisTimestamp($timestamp) : DateTime
    {
        $date = DateTime::createFromFormat('U', $timestamp);
        $date->setTimezone(new DateTimeZone(date_default_timezone_get()));

        return $date;
    }
public function fromRedisTimestamp($timestamp) : DateTime
    {
        $date = DateTime::createFromFormat('U', $timestamp);
        $date->setTimezone(new DateTimeZone(date_default_timezone_get()));

        return $date;
    }
public function fromRedisTimestamp ( $ timestamp ) : DateTime { $ date = DateTime :: createFromFormat ( 'U' , $ timestamp ) ; $ date -> setTimezone ( new DateTimeZone ( date_default_timezone_get ( ) ) ) ; return $ date ; }
Converts a Redis Unix timestamp to a PHP timestamp

@param int $timestamp The Unix timestamp to convert from
@return DateTime The PHP timestamp
Converts a Redis Unix timestamp to a PHP timestamp