Enhances the Intl.DateTimeFormat API by adding a “ fractionalSecondDigits” option to control the format of fractions of a second.
The Date object in ECMAScript stores time information with millisecond precision. Some web developers need to output milliseconds. This option enhances Intl.DateTimeFormat to control formatting of fractions of second. The value of millisecondDigits should be an integer between 0 to 3 to represent how many digits the DateTimeFormat should output after the decimal mark.
Specification being incubated in a Community Group
Status in Chromium
Enabled by default
Consensus & Standardization
- No signal
- No signals
Intent to Prototype urlIntent to Prototype thread
Search tagsIntl, datetimeformat,
Last updated on 2021-12-13