OptionaldaysPresentation style for the days component.
OptionaldaysWhether a zero-valued days component is omitted or always displayed.
OptionalfractionalFraction digits shown for seconds and used to round scalar inputs; integer from 0 to 9.
OptionalhoursPresentation style for the hours component.
OptionalhoursWhether a zero-valued hours component is omitted or always displayed.
OptionalinputUnit of scalar inputs and parsed results. Defaults to seconds.
Selects the built-in duration codec.
OptionallocaleBCP 47 locale overriding the formatter default for this operation.
OptionalmicrosecondsPresentation style for the microseconds component.
OptionalmicrosecondsWhether a zero-valued microseconds component is omitted or always displayed.
OptionalmillisecondsPresentation style for the milliseconds component.
OptionalmillisecondsWhether a zero-valued milliseconds component is omitted or always displayed.
OptionalminutesPresentation style for the minutes component.
OptionalminutesWhether a zero-valued minutes component is omitted or always displayed.
OptionalmonthsPresentation style for the months component.
OptionalmonthsWhether a zero-valued months component is omitted or always displayed.
OptionalnanosecondsPresentation style for the nanoseconds component.
OptionalnanosecondsWhether a zero-valued nanoseconds component is omitted or always displayed.
OptionalnegativeUses a localized sign or surrounding parentheses for negative values.
OptionalnumberingUnicode numbering-system identifier used for numeric components.
Selects localized, format-only duration text. Always required.
OptionalroundingRounding direction for fractional scalar values. Defaults to halfExpand.
OptionalsecondsPresentation style for the seconds component.
OptionalsecondsWhether a zero-valued seconds component is omitted or always displayed.
OptionalsignControls when a positive or negative sign is displayed.
OptionalstyleLocalized presentation style. Defaults to short.
OptionalweeksPresentation style for the weeks component.
OptionalweeksWhether a zero-valued weeks component is omitted or always displayed.
OptionalyearsPresentation style for the years component.
OptionalyearsWhether a zero-valued years component is omitted or always displayed.
Localized duration text from scalar values or calendar/time records.
Requires native or polyfilled
Intl.DurationFormat. This presentation cannot be parsed, does not support ranges, and omitsroundedValuein detailed output. Scalars use inputUnit; records use their named components without converting calendar months or years into a scalar duration.Example: Display fractional seconds in a digital timer