- Notifications
You must be signed in to change notification settings - Fork202
Closed
Milestone
Description
TL;DR
We plan to implement the Proposal forIntl.DurationFormat in GraalJS.
Details
- Time Duration is how long something lasts, from the start to end. It can be represented by a single time unit or multiple ones.
- For example,
- 10000 seconds
- 2 hours 46 minutes 40 seconds
- For example,
- Every locale has its own way to format duration.
- For example:
- en-US: 1 hour, 46 minutes and 40 seconds
- fr-FR: 1 heure, 46 minutes et 40 secondes
- For example:
- There are multiple widths for the time duration.
- For example, wide and short
- 1 hour, 46 minutes and 40 seconds → Wide
- 1 hr, 46 min, 40 sec → Short
- For example, wide and short
newIntl.DurationFormat("fr-FR",{style:"long"}).format({hours:1,minutes:46,seconds:40,});// => "1 heure, 46 minutes et 40 secondes"
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done