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

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

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

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

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

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