Settings

Code Theme

Theme for code blocks: OceanicNext/Github

Theme

Page theme

Toggle to hide or show Browser Details/Support

Change the color of the accent (default: purple)

Language for page. Press Confirm to reload page with selected language

Confirm language

Intl.RelativeTimeFormat

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


zh-CN

Style
Numeric

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秒钟后