[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat [Back]  [Original]

Intl.DurationFormat - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Intl.DurationFormat

Baseline 2025
Newly available

Since 2025 3, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Intl.DurationFormat .

In this article

Intl.DurationFormat()

Intl.DurationFormat .

Intl.DurationFormat.supportedLocalesOf()

, .

Intl.DurationFormat.prototype Intl.DurationFormat .

Intl.DurationFormat.prototype.constructor

. Intl.DurationFormat Intl.DurationFormat .

Intl.DurationFormat.prototype[Symbol.toStringTag]

[Symbol.toStringTag] "Intl.DurationFormat". Object.prototype.toString() .

Intl.DurationFormat.prototype.format()

DurationFormat .

Intl.DurationFormat.prototype.formatToParts()

Array .

Intl.DurationFormat.prototype.resolvedOptions()

.

Intl.DurationFormat

Intl.DurationFormat .

js
const duration = {
  hours: 1,
  minutes: 46,
  seconds: 40,
};

//   "long" ,  "fr-FR" 
new Intl.DurationFormat("fr-FR", { style: "long" }).format(duration);
// "1 heure, 46 minutes et 40 secondes"

//   "short" ,  "en" 
new Intl.DurationFormat("en", { style: "short" }).format(duration);
// "1 hr, 46 min and 40 sec"

//   "narrow" ,  "pt" 
new Intl.DurationFormat("pt", { style: "narrow" }).format(duration);
// "1h 46 min 40s"

Specification
Intl.DurationFormat
# durationformat-objects


Web Proxy Viewer  |  New URL  |  Original Page