--- layout: home title: OhDay order: 0 hero: name: "@xtwis/ohday" text: 链式, 轻量的时间处理 tagline: 基于链式调用和不可变设计的日期/时间处理库. actions: - theme: brand text: 快速开始 link: ./guide/getting-started.md - theme: alt text: API 参考 link: ./reference/ohday.md - theme: alt text: GitHub link: https://github.com/xtwis/ohday features: - title: 可链式 API details: 简洁的方法链让日期操作行云流水. - title: 不可变设计 details: 每次操作都返回新实例, 值稳定且适配响应式场景. - title: 体积小巧 details: 包体接近 dayjs, 零运行时依赖. - title: 极简 API details: 极短的命名, 链式调用更紧凑. - title: 输入形态丰富 details: 自动识别字符串, 自定义格式, 数组, 对象, Date, 时间戳以及 OhDay 自身克隆. - title: TypeScript 优先 details: 内置完整类型定义, 插件通过 declare module 扩展接口. ---