public function getDateTimes(DateTimeZone $timeZone = null)
    {
        // Does the property have a TZID?
        $tzid = $this['TZID'];

        if ($tzid) {
            $timeZone = TimeZoneUtil::getTimeZone((string) $tzid, $this->root);
        }

        $dts = [];
        foreach ($this->getParts() as $part) {
            $dts[] = DateTimeParser::parse($part, $timeZone);
        }

        return $dts;
    }
public function getDateTimes(DateTimeZone $timeZone = null)
    {
        // Does the property have a TZID?
        $tzid = $this['TZID'];

        if ($tzid) {
            $timeZone = TimeZoneUtil::getTimeZone((string) $tzid, $this->root);
        }

        $dts = [];
        foreach ($this->getParts() as $part) {
            $dts[] = DateTimeParser::parse($part, $timeZone);
        }

        return $dts;
    }
public function getDateTimes ( DateTimeZone $ timeZone = null ) { // Does the property have a TZID? $ tzid = $ this [ 'TZID' ] ; if ( $ tzid ) { $ timeZone = TimeZoneUtil :: getTimeZone ( ( string ) $ tzid , $ this -> root ) ; } $ dts = [ ] ; foreach ( $ this -> getParts ( ) as $ part ) { $ dts [ ] = DateTimeParser :: parse ( $ part , $ timeZone ) ; } return $ dts ; }
Returns multiple date-time values.

If no timezone information is known, because it's either an all-day
property or floating time, we will use the DateTimeZone argument to
figure out the exact date.

@param DateTimeZone $timeZone

@return \DateTimeImmutable[]
@return \DateTime[]
Returns multiple date - time values .