Intl.RelativeTimeFormat
Browser support
Full support
Browser support
Full support
Available in Chrome from version 71 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 65 Firefox
Available in Opera from version 58 Opera
Available in Safari from version 14 Safari
Available in Chrome Android from version 71 Chrome Android
Available in Firefox for Android from version 65 Firefox for Android
Available in Opera Android from version 50 Opera Android
Available in Safari on iOS from version 14 Safari on iOS
Available in Samsung Internet from version 10.0 Samsung Internet
Available in WebView Android from version 71 WebView Android
Available in WebView on iOS from version 14 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.0.0 Node.js
Input
de-DE
Output
unit
{
value: "year",
style: "long",
numeric: "auto"
}
in 2 Jahren
{
value: "years",
style: "long",
numeric: "auto"
}
in 2 Jahren
{
value: "quarter",
style: "long",
numeric: "auto"
}
in 2 Quartalen
{
value: "quarters",
style: "long",
numeric: "auto"
}
in 2 Quartalen
{
value: "month",
style: "long",
numeric: "auto"
}
in 2 Monaten
{
value: "months",
style: "long",
numeric: "auto"
}
in 2 Monaten
{
value: "week",
style: "long",
numeric: "auto"
}
in 2 Wochen
{
value: "weeks",
style: "long",
numeric: "auto"
}
in 2 Wochen
{
value: "day",
style: "long",
numeric: "auto"
}
übermorgen
{
value: "days",
style: "long",
numeric: "auto"
}
übermorgen
{
value: "hour",
style: "long",
numeric: "auto"
}
in 2 Stunden
{
value: "hours",
style: "long",
numeric: "auto"
}
in 2 Stunden
{
value: "minute",
style: "long",
numeric: "auto"
}
in 2 Minuten
{
value: "minutes",
style: "long",
numeric: "auto"
}
in 2 Minuten
{
value: "second",
style: "long",
numeric: "auto"
}
in 2 Sekunden
{
value: "seconds",
style: "long",
numeric: "auto"
}
in 2 Sekunden