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

search for in the

timezone_identifiers_list> <time
Last updated: Fri, 22 Aug 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

Descrição

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

Valor Retornado

Returns array on success or FALSE on failure.

Exemplos

Exemplo #1 A timezone_abbreviations_list() example

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

O exemplo acima irá imprimir algo similar a:

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
drizzt321 at gmail dot com
20-Aug-2008 06: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, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites