
whenwords
dbreunig
A relative time formatting library, with no code.
AI 简介
whenwords 是一个无代码实现的相对时间格式化规范库,提供 timeago、duration、parse_duration、human_date 和 date_range 五类时间处理功能。其核心特点是语言无关性——通过 SPEC.md 行为规范、tests.yaml 测试用例和 INSTALL.md 生成指令,支持 Ruby/Python/Rust/Elixir/Swift/PHP/Bash 等任意语言按需实现,无需依赖特定运行时。适用于需要跨语言统一时间表达逻辑的场景,如多语言微服务的时间展示、国际化前端组件、CLI 工具及低代码平台中的时间语义解析。
MIT License
1.3k
Stars
81
Forks
10
Watchers
2
Issues
Star 增长
今日0
近 7 天0
近 30 天+3
综合评分54.04
默认分支main