| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
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 .
Intl.DurationFormat() Intl.DurationFormat .
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 .
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 |
This page was last modified on 2025 10 6 by MDN contributors.
Intl.DurationFormatObject/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()IntlIntl.CollatorIntl.DateTimeFormatIntl.DisplayNamesIntl.ListFormatIntl.LocaleIntl.NumberFormatIntl.PluralRulesIntl.RelativeTimeFormatIntl.SegmenterYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |