Intent to Implement: Add quarter option for Intl.DateTimeFormat

5 views
Skip to first unread message

Frank Tang

unread,
May 22, 2019, 6:33:12 PM5/22/19
to v8-...@googlegroups.com, blink-dev, v8-users, Frank Tang, js...@chromium.org, Nebojša Ćirić, Adam Klein, Shane Carr, Daniel Ehrenberg
ft...@chromium.org,js...@chromium.org https://github.com/tc39/ecma402/pull/345 https://github.com/tc39/ecma402/pull/345 Discus under ECMA402 / TC39. No need for TAG Review. Add quarter option to Intl.DateTimeFormat so the caller can format date such as "Q2 2019", "3rd quarter 2019" (or in Chinese as "2019年第2季") It enhance the Intl.DateTimeFormat API to match what the developer cal already do in C++ and Java by calling ICU and ICU4J. Without this feature, developer need to either format the quarter in the server or ship a set of quarter and date pattern from the server to client to perform such task.
Low. Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signals All the data are already build into chrome already as part of the date time format pattern. Won't increase data size. Uses can use pre-existing Intl.DateTimeFormat plus this new option. low.
no specific need. Yes Yes Tests will be added into test262 before consider shipping. https://www.chromestatus.com/features/4678198379937792

Frank Tang

unread,
May 24, 2019, 1:48:42 PM5/24/19
to v8-...@googlegroups.com, blink-dev, v8-users, js...@chromium.org, Nebojša Ćirić, Adam Klein, Shane Carr, Daniel Ehrenberg
On Wed, May 22, 2019 at 3:33 PM Frank Tang <ft...@chromium.org> wrote:

Adam suggested I add an explainer, here you go 
Reply all
Reply to author
Forward
0 new messages