From 3acecace1be34ea064c12494b31870503a86eca6 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Fri, 6 Feb 2026 14:51:14 +0100 Subject: [PATCH 1/3] Add documentation for intltz_get_iana_id Add documentation page for intltz_get_iana_id available since PHP 8.4: - intltz_get_iana_id: Get the IANA identifier for a given timezone (ICU >= 74) --- .../intl/functions/intltz-get-iana-id.xml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 reference/intl/functions/intltz-get-iana-id.xml diff --git a/reference/intl/functions/intltz-get-iana-id.xml b/reference/intl/functions/intltz-get-iana-id.xml new file mode 100644 index 000000000000..2e5ba610276b --- /dev/null +++ b/reference/intl/functions/intltz-get-iana-id.xml @@ -0,0 +1,80 @@ + + + + intltz_get_iana_id + Get the IANA identifier for a given timezone + + + + &reftitle.description; + + stringfalseintltz_get_iana_id + stringtimezoneId + + + Translates a timezone identifier to its IANA equivalent. For example, + "GMT" returns "Etc/GMT", and + "US/Eastern" returns "America/New_York". + + + + This function requires ICU 74 or later. + + + + + + &reftitle.parameters; + + + + timezoneId + + + The timezone identifier to translate. + + + + + + + + + &reftitle.returnvalues; + + Returns the IANA timezone identifier as a &string;, or &false; on failure. + + + + + &reftitle.seealso; + + + intltz_get_id_for_windows_id + intltz_get_windows_id + intltz_create_time_zone + + + + + + From 92c2fc191475e38de02f3fbef8137dd2eb869785 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Wed, 22 Apr 2026 15:01:46 +0200 Subject: [PATCH 2/3] Apply suggestions Co-authored-by: Louis-Arnaud --- reference/intl/functions/intltz-get-iana-id.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/intl/functions/intltz-get-iana-id.xml b/reference/intl/functions/intltz-get-iana-id.xml index 2e5ba610276b..2181da11e381 100644 --- a/reference/intl/functions/intltz-get-iana-id.xml +++ b/reference/intl/functions/intltz-get-iana-id.xml @@ -17,9 +17,9 @@ "US/Eastern" returns "America/New_York". - + This function requires ICU 74 or later. - + @@ -30,9 +30,9 @@ timezoneId - + The timezone identifier to translate. - + @@ -41,9 +41,9 @@ &reftitle.returnvalues; - + Returns the IANA timezone identifier as a &string;, or &false; on failure. - + From 4ba52535f3f1378721ba2e2455cb9f23fb8190a5 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Mon, 18 May 2026 21:03:55 +0200 Subject: [PATCH 3/3] Move IntlTimeZone::getIanaID to intltimezone/ and add versions.xml entry - Relocate the page from reference/intl/functions/intltz-get-iana-id.xml to reference/intl/intltimezone/getianaid.xml, matching the convention used by IntlTimeZone::getWindowsID (single page documenting both the OO method and the procedural alias). - Add OO synopsis (public static) alongside the procedural one. - Align ICU version note format with reference/intl/intltimezone/getwindowsid.xml. - Register intltimezone::getianaid in reference/intl/versions.xml. --- .../getianaid.xml} | 13 ++++++++++--- reference/intl/versions.xml | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) rename reference/intl/{functions/intltz-get-iana-id.xml => intltimezone/getianaid.xml} (74%) diff --git a/reference/intl/functions/intltz-get-iana-id.xml b/reference/intl/intltimezone/getianaid.xml similarity index 74% rename from reference/intl/functions/intltz-get-iana-id.xml rename to reference/intl/intltimezone/getianaid.xml index 2181da11e381..dcb042cce418 100644 --- a/reference/intl/functions/intltz-get-iana-id.xml +++ b/reference/intl/intltimezone/getianaid.xml @@ -1,12 +1,19 @@ - + + IntlTimeZone::getIanaID intltz_get_iana_id - Get the IANA identifier for a given timezone + Translate a timezone identifier to its IANA equivalent &reftitle.description; + &style.oop; (method): + + public static stringfalseIntlTimeZone::getIanaID + stringtimezoneId + + &style.procedural;: stringfalseintltz_get_iana_id stringtimezoneId @@ -18,7 +25,7 @@ - This function requires ICU 74 or later. + This function requires ICU version >= 74. 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 @@ +