Add dayPeriod option to Intl.DateTimeFormat
Categories
(Core :: JavaScript: Internationalization API, enhancement, P3)
Tracking
()
People
(Reporter: anba, Assigned: anba)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
The spec PR https://github.com/tc39/ecma402/pull/346 adds support for the "dayPeriod" option to Intl.DateTimeFormat.
Example:
js> new Intl.DateTimeFormat("en", {dayPeriod: "short"}).format(new Date("2019-07-23T12:00:00"))
"noon"
js> new Intl.DateTimeFormat("en", {dayPeriod: "short"}).format(new Date("2019-07-23T08:00:00"))
"in the morning"
Assignee | ||
Comment 1•5 years ago
|
||
Nightly-only for now until the open spec issues are addressed.
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
From https://github.com/tc39/ecma402/pull/346#issuecomment-515873310:
The implementation of this PR is now blocked by the following two ICU bugs:
- https://unicode-org.atlassian.net/browse/ICU-20740
- https://unicode-org.atlassian.net/browse/ICU-20741
And https://unicode-org.atlassian.net/browse/CLDR-13184 maybe also worth looking into.
Comment 3•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:anba, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Comment 5•4 years ago
|
||
ICU bugs were fixed last month. Is there any other issue blocking this bug?
Assignee | ||
Comment 6•4 years ago
|
||
I don't think there are any blockers left. At this point we're just waiting for the ICU-67 release.
Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0f2683f0316 Add support for "dayPeriod" option to Intl.DateTimeFormat. r=jwalden
Comment 8•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•