[doc-en] master: IntlDateFormatter: relative date styles can name other nearby days (#6162)
| From: | Louis-Arnaud via GitHub | Date: | Thu, 26 Nov 2026 21:27:31 +0000 |
| Subject: | [doc-en] master: IntlDateFormatter: relative date styles can name other nearby days (#6162) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-24027@lists.php.net to get a copy of this message | ||
Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-11-26T22:27:27+01:00
Commit: https://github.com/php/doc-en/commit/1ee0686746599d25e91ef9cd75870587af174693
Raw diff: https://github.com/php/doc-en/commit/1ee0686746599d25e91ef9cd75870587af174693.diff
IntlDateFormatter: relative date styles can name other nearby days (#6162)
Changed paths:
M reference/intl/dateformatter-constants.xml
Diff:
diff --git a/reference/intl/dateformatter-constants.xml b/reference/intl/dateformatter-constants.xml
index 0569a60ce0e9..d2927211c586 100644
--- a/reference/intl/dateformatter-constants.xml
+++ b/reference/intl/dateformatter-constants.xml
@@ -61,7 +61,10 @@
<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.
+ respectively. Depending on the locale, other nearby days can also show as words,
+ such as <literal>vorgestern</literal> (the day before yesterday) and
+ <literal>übermorgen</literal> (the day after tomorrow) with
<literal>de_DE</literal>.
+ Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
@@ -74,7 +77,10 @@
<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.
+ respectively. Depending on the locale, other nearby days can also show as words,
+ such as <literal>vorgestern</literal> (the day before yesterday) and
+ <literal>übermorgen</literal> (the day after tomorrow) with
<literal>de_DE</literal>.
+ Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
@@ -87,7 +93,10 @@
<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.
+ respectively. Depending on the locale, other nearby days can also show as words,
+ such as <literal>vorgestern</literal> (the day before yesterday) and
+ <literal>übermorgen</literal> (the day after tomorrow) with
<literal>de_DE</literal>.
+ Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>
@@ -100,7 +109,10 @@
<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.
+ respectively. Depending on the locale, other nearby days can also show as words,
+ such as <literal>vorgestern</literal> (the day before yesterday) and
+ <literal>übermorgen</literal> (the day after tomorrow) with
<literal>de_DE</literal>.
+ Available as of PHP 8.0.0, for <parameter>dateType</parameter> only.
</simpara>
</listitem>
</varlistentry>