Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions reference/intl/intltimezone/getianaid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<refentry xml:id="intltimezone.getianaid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>IntlTimeZone::getIanaID</refname>
<refname>intltz_get_iana_id</refname>
<refpurpose>Translate a timezone identifier to its IANA equivalent</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<para>&style.oop; (method):</para>
Comment thread
lacatoire marked this conversation as resolved.
Outdated
<methodsynopsis role="IntlTimeZone">
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>IntlTimeZone::getIanaID</methodname>
<methodparam><type>string</type><parameter>timezoneId</parameter></methodparam>
</methodsynopsis>
<para>&style.procedural;:</para>
Comment thread
lacatoire marked this conversation as resolved.
Outdated
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>intltz_get_iana_id</methodname>
<methodparam><type>string</type><parameter>timezoneId</parameter></methodparam>
</methodsynopsis>
<para>
Translates a timezone identifier to its IANA equivalent. For example,
<literal>"GMT"</literal> returns <literal>"Etc/GMT"</literal>, and
<literal>"US/Eastern"</literal> returns <literal>"America/New_York"</literal>.
</para>
Comment thread
lacatoire marked this conversation as resolved.
Outdated
<note>
<simpara>
This function requires ICU version &gt;= 74.
</simpara>
</note>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>timezoneId</parameter></term>
<listitem>
<simpara>
The timezone identifier to translate.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
Comment thread
lacatoire marked this conversation as resolved.
Outdated
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Returns the IANA timezone identifier as a &string;, or &false; on failure.
</simpara>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>intltz_get_id_for_windows_id</function></member>
<member><function>intltz_get_windows_id</function></member>
<member><function>intltz_create_time_zone</function></member>
</simplelist>
</para>
Comment thread
lacatoire marked this conversation as resolved.
Outdated
</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
-->
1 change: 1 addition & 0 deletions reference/intl/versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
<function name="intltimezone::geterrorcode" from="PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL &gt;= 3.0.0a1"/>
<function name="intltimezone::geterrormessage" from="PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL &gt;= 3.0.0a1"/>
<function name="intltimezone::getwindowsid" from="PHP 7 &gt;= 7.1.0, PHP 8"/>
<function name="intltimezone::getianaid" from="PHP 8 &gt;= 8.4.0"/>

<function name="intldateformatter" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL intl &gt;= 1.0.0"/>
<function name="intldateformatter::__construct" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL intl &gt;= 1.0.0"/>
Expand Down