Home >>PHP Date Time Functions >PHP timezone_abbreviations_list() Function

PHP timezone_abbreviations_list() Function

PHP timezone_abbreviations_list() Function

PHP timezone_abbreviations_list() function is used to get the dst, offset, and the timezone name information. It does not accept any parameter. It returns an associative array containing dst, offset, and the timezone name on success and False on failure.

Syntax:

timezone_abbreviations_list();

Here is an example of timezone_abbreviations_list() function in PHP:

<html>
<body>
<pre>
<?php
$time = Timezone_abbreviations_list();
print_r($time["acst"]);
?>
</pre>
</body>
</html>
Output:
Array
(
    [0] => Array
        (
            [dst] => 
            [offset] => 32400
            [timezone_id] => Australia/Adelaide
        )

    [1] => Array
        (
            [dst] => 
            [offset] => 34200
            [timezone_id] => Australia/Adelaide
        )

    [2] => Array
        (
            [dst] => 
            [offset] => 32400
            [timezone_id] => Australia/Broken_Hill
        )

    [3] => Array
        (
            [dst] => 
            [offset] => 32400
            [timezone_id] => Australia/Darwin
        )

    [4] => Array
        (
            [dst] => 
            [offset] => 32400
            [timezone_id] => Australia/North
        )

    [5] => Array
        (
            [dst] => 
            [offset] => 32400
            [timezone_id] => Australia/South
        )

    [6] => Array
        (
            [dst] => 
            [offset] => 32400
            [timezone_id] => Australia/Yancowinna
        )

    [7] => Array
        (
            [dst] => 
            [offset] => 34200
            [timezone_id] => Australia/Broken_Hill
        )

    [8] => Array
        (
            [dst] => 
            [offset] => 34200
            [timezone_id] => Australia/Darwin
        )

    [9] => Array
        (
            [dst] => 
            [offset] => 34200
            [timezone_id] => Australia/North
        )

    [10] => Array
        (
            [dst] => 
            [offset] => 34200
            [timezone_id] => Australia/South
        )

    [11] => Array
        (
            [dst] => 
            [offset] => 34200
            [timezone_id] => Australia/Yancowinna
        )

)