|  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: -
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:
Status: Open Package: I18N and L10N related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 04:01:26 2019 UTC