public function toNativeDateTime()
    {
        $year   = $this->getDate()->getYear()->toNative();
        $month  = $this->getDate()->getMonth()->getNumericValue();
        $day    = $this->getDate()->getDay()->toNative();
        $hour   = $this->getTime()->getHour()->toNative();
        $minute = $this->getTime()->getMinute()->toNative();
        $second = $this->getTime()->getSecond()->toNative();

        $dateTime = new \DateTime();
        $dateTime->setDate($year, $month, $day);
        $dateTime->setTime($hour, $minute, $second);

        return $dateTime;
    }
public function toNativeDateTime()
    {
        $year   = $this->getDate()->getYear()->toNative();
        $month  = $this->getDate()->getMonth()->getNumericValue();
        $day    = $this->getDate()->getDay()->toNative();
        $hour   = $this->getTime()->getHour()->toNative();
        $minute = $this->getTime()->getMinute()->toNative();
        $second = $this->getTime()->getSecond()->toNative();

        $dateTime = new \DateTime();
        $dateTime->setDate($year, $month, $day);
        $dateTime->setTime($hour, $minute, $second);

        return $dateTime;
    }
public function toNativeDateTime ( ) { $ year = $ this -> getDate ( ) -> getYear ( ) -> toNative ( ) ; $ month = $ this -> getDate ( ) -> getMonth ( ) -> getNumericValue ( ) ; $ day = $ this -> getDate ( ) -> getDay ( ) -> toNative ( ) ; $ hour = $ this -> getTime ( ) -> getHour ( ) -> toNative ( ) ; $ minute = $ this -> getTime ( ) -> getMinute ( ) -> toNative ( ) ; $ second = $ this -> getTime ( ) -> getSecond ( ) -> toNative ( ) ; $ dateTime = new \ DateTime ( ) ; $ dateTime -> setDate ( $ year , $ month , $ day ) ; $ dateTime -> setTime ( $ hour , $ minute , $ second ) ; return $ dateTime ; }
Returns a native PHP \DateTime version of the current DateTime.

@return \DateTime
Returns a native PHP \ DateTime version of the current DateTime .