Web platform features explorer

Intl.DurationFormat

Newly available since 2025-03-04
Tags: javascript Groups: JavaScript > Internationalization

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

Specifications