public function getDateTime()
    {
        if (!empty($this->parts) && $this->parts[0] instanceof DatePart) {
            return $this->parts[0]->getDateTime();
        }
        return null;
    }
public function getDateTime()
    {
        if (!empty($this->parts) && $this->parts[0] instanceof DatePart) {
            return $this->parts[0]->getDateTime();
        }
        return null;
    }
public function getDateTime ( ) { if ( ! empty ( $ this -> parts ) && $ this -> parts [ 0 ] instanceof DatePart ) { return $ this -> parts [ 0 ] -> getDateTime ( ) ; } return null ; }
Convenience method returning the part's DateTime object.

@return \DateTime
Convenience method returning the part s DateTime object .