mirror of
https://github.com/php/doc-de.git
synced 2026-03-24 07:12:15 +01:00
256 lines
7.7 KiB
XML
256 lines
7.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 02ff7fef5b34cf8f5395180d9d39fb64d9398d00 Maintainer: samesch Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="datetimezone.listidentifiers" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>DateTimeZone::listIdentifiers</refname>
|
|
<refname>timezone_identifiers_list</refname>
|
|
<refpurpose>Liefert ein numerisch indiziertes Array, das alle definierten Bezeichner der Zeitzonen enthält</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<para>&style.oop;</para>
|
|
<methodsynopsis role="DateTimeZone">
|
|
<modifier>public</modifier> <modifier>static</modifier> <type>array</type><methodname>DateTimeZone::listIdentifiers</methodname>
|
|
<methodparam choice="opt"><type>int</type><parameter>timezoneGroup</parameter><initializer>DateTimeZone::ALL</initializer></methodparam>
|
|
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>countryCode</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>&style.procedural;</para>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>timezone_identifiers_list</methodname>
|
|
<methodparam choice="opt"><type>int</type><parameter>timezoneGroup</parameter><initializer>DateTimeZone::ALL</initializer></methodparam>
|
|
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>countryCode</parameter><initializer>&null;</initializer></methodparam>
|
|
</methodsynopsis>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>timezoneGroup</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Eine der <classname>DateTimeZone</classname>-Klassenkonstanten (oder
|
|
eine Kombination).
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>countryCode</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Ein Ländercode aus zwei Großbuchstaben, der mit ISO 3166-1 kompatibel ist.
|
|
</para>
|
|
<note>
|
|
<simpara>
|
|
Diese Option wird nur verwendet, wenn
|
|
<parameter>timezoneGroup</parameter> auf
|
|
<constant>DateTimeZone::PER_COUNTRY</constant> gesetzt ist.
|
|
</simpara>
|
|
</note>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Gibt ein Array von Zeitzonenbezeichnern zurück. Es werden nur nicht
|
|
veraltete Elemente zurückgegeben. Um alle, auch veraltete
|
|
Zeitzonenbezeichner zu erhalten, muss
|
|
<literal>DateTimeZone::ALL_WITH_BC</literal> als Wert für
|
|
<parameter>timezoneGroup</parameter> verwendet werden.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.0.0</entry>
|
|
<entry>
|
|
Vor dieser Version wurde bei einem Fehler &false; zurückgegeben.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>7.1.0</entry>
|
|
<entry>
|
|
<parameter>countryCode</parameter> ist nun nullable (akzeptiert den
|
|
&null;-Wert).
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><methodname>DateTimeZone::listIdentifiers</methodname>-Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$timezone_identifiers = DateTimeZone::listIdentifiers();
|
|
for ($i=0; $i < 5; $i++) {
|
|
echo "$timezone_identifiers[$i]\n";
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Africa/Abidjan
|
|
Africa/Accra
|
|
Africa/Addis_Ababa
|
|
Africa/Algiers
|
|
Africa/Asmara
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
|
|
<para>
|
|
<example>
|
|
<title>Auflisten der Bezeichner für eine bestimmte Region</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$timezone_identifiers = DateTimeZone::listIdentifiers( DateTimeZone::ASIA );
|
|
for ($i=0; $i < 5; $i++) {
|
|
echo "$timezone_identifiers[$i]\n";
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Asia/Aden
|
|
Asia/Almaty
|
|
Asia/Amman
|
|
Asia/Anadyr
|
|
Asia/Aqtau
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
|
|
<para>
|
|
<example>
|
|
<title>Auflisten der Bezeichner für mehrere Regionen</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$timezone_identifiers = DateTimeZone::listIdentifiers( DateTimeZone::ASIA | DateTimeZone::PACIFIC );
|
|
echo join( ', ', $timezone_identifiers );
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Asia/Aden, Asia/Almaty, Asia/Amman, Asia/Anadyr, Asia/Aqtau, Asia/Aqtobe,
|
|
Asia/Ashgabat, Asia/Atyrau, Asia/Baghdad, Asia/Bahrain, Asia/Baku,
|
|
Asia/Bangkok, Asia/Barnaul, Asia/Beirut, Asia/Bishkek, Asia/Brunei,
|
|
Asia/Chita, Asia/Choibalsan, Asia/Colombo, Asia/Damascus, Asia/Dhaka,
|
|
Asia/Dili, Asia/Dubai, Asia/Dushanbe, Asia/Famagusta, Asia/Gaza, Asia/Hebron,
|
|
Asia/Ho_Chi_Minh, Asia/Hong_Kong, Asia/Hovd, Asia/Irkutsk, Asia/Jakarta,
|
|
Asia/Jayapura, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi,
|
|
Asia/Kathmandu, Asia/Khandyga, Asia/Kolkata, Asia/Krasnoyarsk,
|
|
Asia/Kuala_Lumpur, Asia/Kuching, Asia/Kuwait, Asia/Macau, Asia/Magadan,
|
|
Asia/Makassar, Asia/Manila, Asia/Muscat, Asia/Nicosia, Asia/Novokuznetsk,
|
|
Asia/Novosibirsk, Asia/Omsk, Asia/Oral, Asia/Phnom_Penh, Asia/Pontianak,
|
|
Asia/Pyongyang, Asia/Qatar, Asia/Qostanay, Asia/Qyzylorda, Asia/Riyadh,
|
|
Asia/Sakhalin, Asia/Samarkand, Asia/Seoul, Asia/Shanghai, Asia/Singapore,
|
|
Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran,
|
|
Asia/Thimphu, Asia/Tokyo, Asia/Tomsk, Asia/Ulaanbaatar, Asia/Urumqi,
|
|
Asia/Ust-Nera, Asia/Vientiane, Asia/Vladivostok, Asia/Yakutsk, Asia/Yangon,
|
|
Asia/Yekaterinburg, Asia/Yerevan, Pacific/Apia, Pacific/Auckland,
|
|
Pacific/Bougainville, Pacific/Chatham, Pacific/Chuuk, Pacific/Easter,
|
|
Pacific/Efate, Pacific/Fakaofo, Pacific/Fiji, Pacific/Funafuti,
|
|
Pacific/Galapagos, Pacific/Gambier, Pacific/Guadalcanal, Pacific/Guam,
|
|
Pacific/Honolulu, Pacific/Kanton, Pacific/Kiritimati, Pacific/Kosrae,
|
|
Pacific/Kwajalein, Pacific/Majuro, Pacific/Marquesas, Pacific/Midway,
|
|
Pacific/Nauru, Pacific/Niue, Pacific/Norfolk, Pacific/Noumea,
|
|
Pacific/Pago_Pago, Pacific/Palau, Pacific/Pitcairn, Pacific/Pohnpei,
|
|
Pacific/Port_Moresby, Pacific/Rarotonga, Pacific/Saipan, Pacific/Tahiti,
|
|
Pacific/Tarawa, Pacific/Tongatapu, Pacific/Wake, Pacific/Wallis
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
|
|
<para>
|
|
<example>
|
|
<title>Auflisten der Bezeichner für ein einzelnes Land</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$timezone_identifiers = DateTimeZone::listIdentifiers( DateTimeZone::PER_COUNTRY, "UA" );
|
|
foreach( $timezone_identifiers as $identifier ) {
|
|
echo "$identifier\n";
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Europe/Kyiv
|
|
Europe/Simferopol
|
|
Europe/Uzhgorod
|
|
Europe/Zaporozhye
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>timezone_abbreviations_list</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|