-
Notifications
You must be signed in to change notification settings - Fork 868
Add documentation for intltz_get_iana_id (PHP 8.4) #5353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+84
−0
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3acecac
Add documentation for intltz_get_iana_id
lacatoire 92c2fc1
Apply suggestions
lacatoire 4ba5253
Move IntlTimeZone::getIanaID to intltimezone/ and add versions.xml entry
lacatoire f68adf5
Update getianaid.xml
lacatoire bdb55ae
Update getianaid.xml
lacatoire de88e87
Update getianaid.xml
lacatoire 0df9956
Update getianaid.xml
lacatoire 9ca144e
Update getianaid.xml
lacatoire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| <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> | ||
|
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> | ||
|
lacatoire marked this conversation as resolved.
Outdated
|
||
| <note> | ||
| <simpara> | ||
| This function requires ICU version >= 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> | ||
|
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> | ||
|
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 | ||
| --> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.