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
ja
Output
unit
{
value: "year",
style: "long",
numeric: "auto"
}
2 年後
{
value: "years",
style: "long",
numeric: "auto"
}
2 年後
{
value: "quarter",
style: "long",
numeric: "auto"
}
2 四半期後
{
value: "quarters",
style: "long",
numeric: "auto"
}
2 四半期後
{
value: "month",
style: "long",
numeric: "auto"
}
2 か月後
{
value: "months",
style: "long",
numeric: "auto"
}
2 か月後
{
value: "week",
style: "long",
numeric: "auto"
}
2 週間後
{
value: "weeks",
style: "long",
numeric: "auto"
}
2 週間後
{
value: "day",
style: "long",
numeric: "auto"
}
明後日
{
value: "days",
style: "long",
numeric: "auto"
}
明後日
{
value: "hour",
style: "long",
numeric: "auto"
}
2 時間後
{
value: "hours",
style: "long",
numeric: "auto"
}
2 時間後
{
value: "minute",
style: "long",
numeric: "auto"
}
2 分後
{
value: "minutes",
style: "long",
numeric: "auto"
}
2 分後
{
value: "second",
style: "long",
numeric: "auto"
}
2 秒後
{
value: "seconds",
style: "long",
numeric: "auto"
}
2 秒後