tc39 / proposal-intl-duration-format

https://tc39.es/proposal-intl-duration-format
MIT License
163 stars 18 forks source link

Should `fractionalDigits` be called `fractionalSecondDigits` instead? #177

Closed longlho closed 9 months ago

longlho commented 9 months ago

To be consistent with Intl.DateTimeFormat?

ben-allen commented 9 months ago

fractionalDigits has that name because seconds isn't the only unit that can have associated fractional digits. For example, if milliseconds is the largest unit displayed in the "numeric" style, then the fractional digits representing microseconds and nanoseconds will get appended to milliseconds, not to seconds.

longlho commented 9 months ago

Gotcha thanks!