|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #78649 Provide ICU RELATIVE_ constants
Submitted: 2019-10-08 18:17 UTC Modified: 2020-01-21 23:14 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: math dot lechat at gmail dot com Assigned: kocsismate (profile)
Status: Closed Package: I18N and L10N related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
18 - 3 = ?
Subscribe to this entry?

 [2019-10-08 18:17 UTC] math dot lechat at gmail dot com
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

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-21 23:14 UTC]
-Assigned To: +Assigned To: kocsismate
 [2020-01-21 23:18 UTC]
I opened the following PR for fixing the issue:
 [2020-01-22 19:04 UTC]
Automatic comment on behalf of
Log: Fix #78649 Provide ICU RELATIVE_ constants
 [2020-01-22 19:04 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 27 12:01:25 2020 UTC