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: Fri, 24 Sep 2010

view this page in

timezone_abbreviations_list

(PHP 5 >= 5.1.0)

timezone_abbreviations_listAlias of DateTimeZone::listAbbreviations()

Description

This function is an alias of: DateTimeZone::listAbbreviations()



timezone_identifiers_list> <time
Last updated: Fri, 24 Sep 2010
 
add a note add a note User Contributed Notes
timezone_abbreviations_list
dustinalan
21-Apr-2010 10:58
This was driving me nuts so I'm adding a note here.

Took a while to get the simple time zone abbreviation for a given time zone. If you have the name just do this:

<?php
$dateTime
= new DateTime();
$dateTime->setTimeZone(new DateTimeZone('America/Los_Angeles'));
return
$dateTime->format('T');
?>

Will return PST

[red.: Or PDT is the current date/time is during Daylight Savings Time]
Chris Danielson
01-Oct-2008 06: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 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, 24 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites