Function __global->get_timezone_list
Definitions
sources/temporal.php
- Get a list of timezones.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $bypass_cache | boolean | No | No | False | N/A | N/A | Whether to bypass the timezone cache |
Returns
- Timezone (map between boring-style and human-readable name). Sorted in offset order then likelihood order.
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a list of timezones.
*
* @param boolean $bypass_cache Whether to bypass the timezone cache
* @return array Timezone (map between boring-style and human-readable name). Sorted in offset order then likelihood order.
*/
function get_timezone_list(bool $bypass_cache = false) : array
* Get a list of timezones.
*
* @param boolean $bypass_cache Whether to bypass the timezone cache
* @return array Timezone (map between boring-style and human-readable name). Sorted in offset order then likelihood order.
*/
function get_timezone_list(bool $bypass_cache = false) : array
