php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-21 23:14 UTC] kocsismate@php.net
-Assigned To: +Assigned To: kocsismate
 [2020-01-21 23:18 UTC] kocsismate@php.net
I opened the following PR for fixing the issue: https://github.com/php/php-src/pull/5105
 [2020-01-22 19:04 UTC] kocsismate@php.net
Automatic comment on behalf of kocsismate@woohoolabs.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=476636841f450cf90c4a2a9516160303f0df3cb7
Log: Fix #78649 Provide ICU RELATIVE_ constants
 [2020-01-22 19:04 UTC] kocsismate@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Aug 11 04:01:26 2020 UTC