Intl.DurationFormat 
Input
Output
style
{
style: "long"
}
2 years, 1 month, 46 days
{
style: "short"
}
2 yrs, 1 mth, 46 days
{
style: "narrow"
}
2y 1m 46d
{
style: "digital"
}
2 yrs, 1 mth, 46 days, 0:00:00
years
{
years: "long"
}
2 years, 1 mth, 46 days
{
years: "short"
}
2 yrs, 1 mth, 46 days
{
years: "narrow"
}
2y, 1 mth, 46 days
months
{
months: "long"
}
2 yrs, 1 month, 46 days
{
months: "short"
}
2 yrs, 1 mth, 46 days
{
months: "narrow"
}
2 yrs, 1m, 46 days
weeks
{
weeks: "long"
}
2 yrs, 1 mth, 0 weeks, 46 days
{
weeks: "short"
}
2 yrs, 1 mth, 0 wks, 46 days
{
weeks: "narrow"
}
2 yrs, 1 mth, 0w, 46 days
days
{
days: "long"
}
2 yrs, 1 mth, 46 days
{
days: "short"
}
2 yrs, 1 mth, 46 days
{
days: "narrow"
}
2 yrs, 1 mth, 46d
hours
{
hours: "long"
}
2 yrs, 1 mth, 46 days, 0 hours
{
hours: "short"
}
2 yrs, 1 mth, 46 days, 0 hr
{
hours: "narrow"
}
2 yrs, 1 mth, 46 days, 0h
minutes
{
minutes: "long"
}
2 yrs, 1 mth, 46 days, 0 minutes
{
minutes: "short"
}
2 yrs, 1 mth, 46 days, 0 min
{
minutes: "narrow"
}
2 yrs, 1 mth, 46 days, 0m
seconds
{
seconds: "long"
}
2 yrs, 1 mth, 46 days, 0 seconds
{
seconds: "short"
}
2 yrs, 1 mth, 46 days, 0 sec
{
seconds: "narrow"
}
2 yrs, 1 mth, 46 days, 0s
milliseconds
{
milliseconds: "long"
}
2 yrs, 1 mth, 46 days, 0 milliseconds
{
milliseconds: "short"
}
2 yrs, 1 mth, 46 days, 0 ms
{
milliseconds: "narrow"
}
2 yrs, 1 mth, 46 days, 0ms
microseconds
{
microseconds: "long"
}
2 yrs, 1 mth, 46 days, 0 microseconds
{
microseconds: "short"
}
2 yrs, 1 mth, 46 days, 0 μs
{
microseconds: "narrow"
}
2 yrs, 1 mth, 46 days, 0μs
nanoseconds
{
nanoseconds: "long"
}
2 yrs, 1 mth, 46 days, 0 nanoseconds
{
nanoseconds: "short"
}
2 yrs, 1 mth, 46 days, 0 ns
{
nanoseconds: "narrow"
}
2 yrs, 1 mth, 46 days, 0ns
fractionalDigits
{
fractionalDigits: 1
}
2 yrs, 1 mth, 46 days
{
fractionalDigits: 2
}
2 yrs, 1 mth, 46 days
{
fractionalDigits: 3
}
2 yrs, 1 mth, 46 days
{
fractionalDigits: 4
}
2 yrs, 1 mth, 46 days
{
fractionalDigits: 5
}
2 yrs, 1 mth, 46 days
localeMatcher
{
localeMatcher: "best fit"
}
2 yrs, 1 mth, 46 days
{
localeMatcher: "lookup"
}
2 yrs, 1 mth, 46 days