libphonenumber\PhoneNumberToTimeZonesMapper::getTimeZonesForGeocodableNumber PHP Method

getTimeZonesForGeocodableNumber() protected method

Returns a list of time zones to which a geocodable phone number belongs.
protected getTimeZonesForGeocodableNumber ( PhoneNumber $number ) : array
$number PhoneNumber The phone number for which we want to get the time zones to which it belongs
return array the list of correspondiing time zones or a single element list with the default unknown timezone if no other time zone was found or if the number was invalid
    protected function getTimeZonesForGeocodableNumber(PhoneNumber $number)
    {
        $timezones = $this->prefixTimeZonesMap->lookupTimeZonesForNumber($number);
        return count($timezones) == 0 ? $this->unknownTimeZoneList : $timezones;
    }