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

search for in the

timezone_identifiers_list> <time
Last updated: Sun, 25 Nov 2007

view this page in

timezone_abbreviations_list

(PHP 5 >= 5.1.0)

timezone_abbreviations_list — Returns associative array containing dst, offset and the timezone name

Beskrivelse

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

Returneringsværdier

Returns array on success or FALSE on failure.

Eksempler

Example#1 A timezone_abbreviations_list() example

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

Ovenstående eksempel vil udskrive noget der ligner:

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 04: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 04: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: Sun, 25 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites