PHP code example of bigwhoop / localized-time-zones
1. Go to this page and download the library: Download bigwhoop/localized-time-zones library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bigwhoop / localized-time-zones example snippets
use Bigwhoop\LocalizedTimeZones\Loader;
var_dump(Loader::all('es_MX'));
// [
// 'Africa/Abidjan' => 'Abiyán',
// 'Africa/Accra' => 'Acra',
// 'America/Adak' => 'Adak',
// 'Africa/Addis_Ababa' => 'Addis Abeba',
// 'Australia/Adelaide' => 'Adelaida',
// 'Asia/Aden' => 'Adén',
// ...
// ]
var_dump(Loader::one('Africa/Abidjan', 'es'));
// Abiyán