go to bug id or search bugs for
ICU currently provides limited support for formatting dates using a “relative” style, specified using RELATIVE_SHORT, RELATIVE_MEDIUM, RELATIVE_LONG. or RELATIVE_FULL whose value is their absolute counterpart ORed by 128.
Intl currently only provides the absolute formats as constants. One can use a relative format by setting the correct numerical value though.
Could relative formats be added as constants?
Add a Patch
Add a Pull Request
I opened the following PR for fixing the issue: https://github.com/php/php-src/pull/5105
Automatic comment on behalf of firstname.lastname@example.org
Log: Fix #78649 Provide ICU RELATIVE_ constants