|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: math dot lechat at gmail dot com
New email:
PHP Version: OS:


 [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-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 18:03:14 2021 UTC