Intl.DurationFormat
Newly available since 2025-03-04
The Intl.DurationFormat
API creates a locale-aware formatter that turns an object representing a duration (such as days, hours, and minutes) into a string.
Learning resources on MDN
Browser support
- Chrome 129 Released on 2024-09-17
- Chrome Android 129 Released on 2024-09-17
- Edge 129 Released on 2024-09-19
- Firefox 136 Released on 2025-03-04
- Firefox for Android 136 Released on 2025-03-04
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Specifications
- Intl.DurationFormat, from TC39 (Ecma International).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature