PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

timezone_identifiers_list> <time
Last updated: Fri, 28 Nov 2008

view this page in

timezone_abbreviations_list

(PHP 5 >= 5.1.0)

timezone_abbreviations_listReturns associative array containing dst, offset and the timezone name

Description

array timezone_abbreviations_list ( void )
array DateTimeZone::listAbbreviations ( void )

Return Values

Returns array on success or FALSE on failure.

Examples

Example #1 A timezone_abbreviations_list() example

<?php
$timezone_abbreviations 
DateTimeZone::listAbbreviations();
print_r($timezone_abbreviations["acst"]);
?>

The above example will output something similar to:

Array
(
    [0] => Array
        (
            [dst] => 1
            [offset] => -14400
            [timezone_id] => America/Porto_Acre
        )

    [1] => Array
        (
            [dst] => 1
            [offset] => -14400
            [timezone_id] => America/Eirunepe
        )

    [2] => Array
        (
            [dst] => 1
            [offset] => -14400
            [timezone_id] => America/Rio_Branco
        )

    [3] => Array
        (
            [dst] => 1
            [offset] => -14400
            [timezone_id] => Brazil/Acre
        )

)



add a note add a note User Contributed Notes
timezone_abbreviations_list
Chris Danielson
01-Oct-2008 09:46
The mention of using 'US/Pacific-New' is actually a deprecated process.

See here:  http://us.php.net/manual/en/timezones.others.php

Where it is described:

Please do not use any of the timezones listed here (besides UTC), they only exist for backward compatible reasons.
drizzt321 at gmail dot com
20-Aug-2008 09:54
If anyone is confused about the US/Pacific-New that appears in the list, apparently it has something to do with a bill that was that was passed by the House in 1989, but never signed into law. It has to do with delaying the switchover until after the election. Read more about it at http://catless.ncl.ac.uk/Risks/13.87.html and it should be the first posting. Or just do a search for US/Pacific-New.

timezone_identifiers_list> <time
Last updated: Fri, 28 Nov 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites