@@ -37,6 +37,18 @@ PHP 8.7 UPGRADE NOTES
3737========================================
3838
3939- Intl:
40+ . Added IntlRelativeDateTimeFormatter to format relative date and time offsets
41+ using locale-specific text, such as "yesterday" or "in 3 days". Its format()
42+ method uses a textual form when available and a numeric form otherwise,
43+ while formatNumeric() always uses a numeric form. combineDateAndTime()
44+ combines already formatted date and time strings according to the locale.
45+ The constructor accepts an optional NumberFormatter to customize numeric
46+ output; subsequent configuration changes to that object are reflected in
47+ formatting results. Styles, capitalization contexts, and units are selected
48+ using the IntlRelativeDateTimeFormatterStyle,
49+ IntlRelativeDateTimeFormatterCapitalization, and
50+ IntlRelativeDateTimeFormatterUnit enums, respectively.
51+ RFC: https://wiki.php.net/rfc/reldateformatter
4052 . Locale::acceptFromHttp() and locale_accept_from_http() now accept an
4153 optional $availableLocales array argument. When given, the
4254 Accept-Language header is matched against these locales instead of all
@@ -68,6 +80,13 @@ PHP 8.7 UPGRADE NOTES
68807. New Classes and Interfaces
6981========================================
7082
83+ - Intl:
84+ . IntlRelativeDateTimeFormatter
85+ . enum IntlRelativeDateTimeFormatterStyle
86+ . enum IntlRelativeDateTimeFormatterCapitalization
87+ . enum IntlRelativeDateTimeFormatterUnit
88+ RFC: https://wiki.php.net/rfc/reldateformatter
89+
7190========================================
72918. Removed Extensions and SAPIs
7392========================================
0 commit comments