Intent to Prototype: Intl.DurationFormat

100 views
Skip to first unread message

Frank Tang

unread,
Sep 9, 2022, 12:43:12 PM9/9/22
to blink-dev, Frank Yung-Fong Tang, Shane Carr, Nebojša Ćirić, Shu-yu Guo, Adam Klein

Contact emails

ft...@google.com

Explainer

https://github.com/tc39/proposal-intl-duration-format

Specification

https://tc39.es/proposal-intl-duration-format

Summary

Intl.DurationFormat API is a TC39 ECMA402 proposal See https://github.com/tc39/proposal-intl-duration-format for the proposal The proposal advanced to Stage 3 on 2021-10 Spec: https://tc39.es/proposal-intl-duration-format/



Blink component

Blink>JavaScript>Internationalization

Motivation

This TC39/ECMA402 proposal advanced to Stage 3 in Oct 2021. Users need all types of duration formatting depending on the requirements of their application. For example, to show how long a flight takes, the duration should be in Short or Narrow format "1 hr 40 min 60 sec" → Short "1h 40m 60s" → Narrow And such format are different in different locale. This API enacpsulate the details of such formatting and provide an unified API supporting multiple locales.



Initial public proposal



TAG review



TAG review status

Not applicable

Risks



Interoperability and Compatibility



Gecko: In development (https://bugzilla.mozilla.org/show_bug.cgi?id=1648139)

WebKit: In development (https://bugs.webkit.org/show_bug.cgi?id=214794)

Web developers: Positive (https://github.com/tc39/ecma402-mdn/issues/22)

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability

tbw



Is this feature fully tested by web-platform-tests?

Yes

Flag name



Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/v8/issues/detail?id=11660

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5193021205774336

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages