[DOC-CVS] [doc-en] master: intltz_get_iana_id: Add documentation (PHP 8.4) (#5353)
[email protected] (Louis-Arnaud via GitHub) Sat, 23 May 2026 20:10:30 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Louis-Arnaud (lacatoire) Committer: GitHub (web-flow) Pusher: jordikroon Date: 2026-05-23T22:10:28+02:00 Commit: https://github.com/php/doc-en/commit/3f1722ae51abab1a1ee5fde3ada01fe5cbb87f36 Raw diff: https://github.com/php/doc-en/commit/3f1722ae51abab1a1ee5fde3ada01fe5cbb87f36.diff intltz_get_iana_id: Add documentation (PHP 8.4) (#5353) * Add documentation for intltz_get_iana_id Add documentation page for intltz_get_iana_id available since PHP 8.4: Co-authored-by: Jordi Kroon <[email protected]> Changed paths: A reference/intl/intltimezone/getianaid.xml M reference/intl/versions.xml Diff: diff --git a/reference/intl/intltimezone/getianaid.xml b/reference/intl/intltimezone/getianaid.xml new file mode 100644 index 000000000000..ed3a31798bb0 --- /dev/null +++ b/reference/intl/intltimezone/getianaid.xml @@ -0,0 +1,83 @@ +<?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; + <simpara>&style.oop; (method):</simpara> + <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> + <simpara>&style.procedural;:</simpara> + <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> + <simpara> + 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>. + </simpara> + <note> + <simpara> + This function requires ICU version >= 74. + </simpara> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <variablelist> + <varlistentry> + <term><parameter>timezoneId</parameter></term> + <listitem> + <simpara> + The timezone identifier to translate. + </simpara> + </listitem> + </varlistentry> + </variablelist> + </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; + <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> + </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 +--> diff --git a/reference/intl/versions.xml b/reference/intl/versions.xml index ce66042ad19a..f75502f1a0b0 100644 --- a/reference/intl/versions.xml +++ b/reference/intl/versions.xml @@ -159,6 +159,7 @@ <function name="intltimezone::geterrorcode" from="PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1"/> <function name="intltimezone::geterrormessage" from="PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1"/> <function name="intltimezone::getwindowsid" from="PHP 7 >= 7.1.0, PHP 8"/> + <function name="intltimezone::getianaid" from="PHP 8 >= 8.4.0"/> <function name="intldateformatter" from="PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0"/> <function name="intldateformatter::__construct" from="PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0"/>