PHP Doku:: Alias von DateTimeZone::listAbbreviations - function.timezone-abbreviations-list.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatums- und zeitrelevante ErweiterungenDatum und UhrzeitDatum/Uhrzeit Funktionentimezone_abbreviations_list

Ein Service von Reinhard Neidl - Webprogrammierung.

Datum/Uhrzeit Funktionen




(PHP 5 >= 5.1.0)

timezone_abbreviations_listAlias von DateTimeZone::listAbbreviations()


Diese Funktion ist ein Alias für: DateTimeZone::listAbbreviations()

3 BenutzerBeiträge:
- Beiträge aktualisieren...
21.04.2010 22: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:

= new DateTime();
$dateTime->setTimeZone(new DateTimeZone('America/Los_Angeles'));

Will return PST

[red.: Or PDT is the current date/time is during Daylight Savings Time]
Chris Danielson
1.10.2008 18:46
The mention of using 'US/Pacific-New' is actually a deprecated process.

See here:

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.08.2008 18: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 and it should be the first posting. Or just do a search for US/Pacific-New.

PHP Powered Diese Seite bei
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)