使用方法
- Enter a numeric value in the value field; negative numbers mean the past, positive numbers mean the future。
- Select a time unit from the dropdown: second, minute, hour, day, week, month, quarter, or year。
- Read the table to compare how Intl.RelativeTimeFormat renders the duration across 11 locales。
- Note that the 'auto' style returns natural-language phrases like 'yesterday' or 'last month' when applicable。
範例
- Entering -1 with unit 'day' shows 'yesterday' in en-US, 'hier' in fr-FR, and '어제' in ko-KR。
- Entering 3 with unit 'month' shows 'in 3 months' in en-US and corresponding translations across all 11 locales。