dsh-tool-time
Strict ISO 8601 parsing, IANA timezone conversion, and UTC calendar arithmetic.
严格 ISO 8601 解析、IANA 时区转换、UTC 日历运算。
How to install
dsh plugin add github:omdsh-dev/dsh-tool-time About
dsh-tool-time English DSH 时间工具插件 —— 严格 ISO 解析、IANA 时区转换、UTC 日历运算、固定时长差。零依赖、零进程、纯函数。 动机 Agent 处理时间信息是最高频需求之一——"现在几点"、"3 天后是几号"、"把 UTC 转成北京时间"。当前做法 bash date 的问题:每次起进程、跨平台语法不一致(macOS 与 GNU date -d 完全不同)、时区转换靠 TZ=... 手动拼。模型心算时区偏移和闰年/DST 边界是错误高发区。 安全模型 无 eval、无 new Function。输入只经过严格校验: **严格 ISO 8601 子集**:仅接受 YYYY-MM-DD(UTC 零点)、YYYY-MM-DDTHH:mm:ssZ、YYYY-MM-DDTHH:mm:ss±HH:MM(±14:00 内,可选 .SSS 毫秒);不带时区的日期时间、RFC 2822、自然语言日期一律拒绝;2026-02-30 等日历溢出由查表校验拒绝(不依赖 Date 的静默归一化) **时区名**:IANA 名交给 Intl.DateTimeFormat 校验,非法即抛 time: unknown timezone **数值**:amount 必须是安全整数;unit 枚举白名单;所有字符串 ≤200 字符 **Intl 环境固定**:'en-CA' …
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 4
- mo. downloads
- –
- Last push
- 2026-09-10
- Created
- 2026-08-06
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh, dsh-plugin, iso8601, time, timezone
Related plugins
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
davinci-resolve-mcp
samuelgursky/davinci-resolve-mcp
MCP server integration for DaVinci Resolve Studio
ssh-mcp
tufantunc/ssh-mcp
MCP server exposing SSH control for Linux servers via Model Context Protocol.