tc39 / proposal-intl-duration-format

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

Need formatRange and formatRangeToParts #136

Open FrankYFTang opened 1 year ago

FrankYFTang commented 1 year ago

I know this proposal is already stage 3 but I think the following features should be considred, maybe for a v2 version

To support formatting range of duration by adding

Here are some real use case

@sffc @ryzokuken Not high priority imporant feature but worth of thinking for future plan.

ryzokuken commented 1 year ago

I was just using the UPS website this morning and thought of this! Great timing Frank. I agree that it's beyond the scope of this proposal but a good contender for DurationFormat v2. I'll post this as an issue on 402 so we can take it from there.

FrankYFTang commented 1 year ago

could you include some screenshot when you see one?