Add new IntlDateFormatter constants

Closes GH-267.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351939 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-12-06 23:34:08 +00:00
parent 7104ee97ce
commit 80858f3bd0

View file

@ -52,6 +52,58 @@
<simpara>Most abbreviated style, only essential data (12/13/52 or 3:30pm)</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="intldateformatter.constants.relative_full">
<term>
<constant>IntlDateFormatter::RELATIVE_FULL</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The same as <constant>IntlDateFormatter::FULL</constant>, but yesterday, today, and tomorrow
show as <literal>yesterday</literal>, <literal>today</literal>, and <literal>tomorrow</literal>,
respectively. Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="intldateformatter.constants.relative_long">
<term>
<constant>IntlDateFormatter::RELATIVE_LONG</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The same as <constant>IntlDateFormatter::LONG</constant>, but yesterday, today, and tomorrow
show as <literal>yesterday</literal>, <literal>today</literal>, and <literal>tomorrow</literal>,
respectively. Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="intldateformatter.constants.relative_medium">
<term>
<constant>IntlDateFormatter::RELATIVE_MEDIUM</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The same as <constant>IntlDateFormatter::MEDIUM</constant>, but yesterday, today, and tomorrow
show as <literal>yesterday</literal>, <literal>today</literal>, and <literal>tomorrow</literal>,
respectively. Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="intldateformatter.constants.relative_short">
<term>
<constant>IntlDateFormatter::RELATIVE_SHORT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The same as <constant>IntlDateFormatter::SHORT</constant>, but yesterday, today, and tomorrow
show as <literal>yesterday</literal>, <literal>today</literal>, and <literal>tomorrow</literal>,
respectively. Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>