How to get a list of metazones from Zend Framework Zend_Locale?

I am trying to have a list of all the most common time zones for a user interface component. Rummaging through the Zend framework, I found that addalData.xml (used by the component Zend_Locale) has a list of metazones with preferred TZ database zone names

    <mapTimezones type="metazones">
        <mapZone other="Acre" territory="001" type="America/Rio_Branco"/>
        <mapZone other="Afghanistan" territory="001" type="Asia/Kabul"/>
        <mapZone other="Africa_Central" territory="001" type="Africa/Maputo"/>
        <mapZone other="Africa_Central" territory="BI" type="Africa/Bujumbura"/>
        <mapZone other="Africa_Central" territory="BW" type="Africa/Gaborone"/>
        <mapZone other="Africa_Central" territory="CD" type="Africa/Lubumbashi"/>
        (...)

I think this may come in handy for my needs, and I would like this list to be checked out. Instead of hacking into my version of the library, I would like to know if there is a way to get this list in the usual ways (there seems to be no way, and this metazone information does not seem to be requested anywhere).

Thank!

+3
source share
2

, ,

$locale->getTranslationList('TerritoryToTimezone');

TerritoryToTimezone , Zend_Locale subchapter .

, , DOM XML.

+1

timezone_abbreviations_list(), timezone_identifiers_list()...

0

Source: https://habr.com/ru/post/1768184/


All Articles