Skip to main content

Intl.RelativeTimeFormat相对时间格式化

deathghost.cn

Intl.RelativeTimeFormat是一个JavaScript构造函数,用于实现本地化的相对时间格式化,如'昨天'、'20秒前'等短语。

Developer Tools & APIs#javascript#localization#formatting
Visit website
Intl.RelativeTimeFormat相对时间格式化 preview

该Intl.RelativeTimeFormat对象是一个构造函数,可以实现本地区域化相对时间格式。犹如Web端我们常见的“昨天”,“20秒前”或“1个月”之类的短语,而不是完整日期和时间戳。

More in Developer Tools & APIs

SolveHub

API for CAPTCHA and anti-bot tasks in authorized testing

Dev Tools ·

liarjs.dev

Scanner that cross-checks browser JavaScript fingerprint against network layer

Dev Tools ·

AntiBrow

Antidetect browser for managing multiple browser identities with real-device

Dev Tools ·

HostlessWP

Open source CLI to move WordPress to Cloudflare Workers

Dev Tools ·

deed.page

Permanent web hosting with an API for AI agents

Dev Tools ·

Rowflare

Open-source Airtable alternative running on your Cloudflare account

Dev Tools ·