← 返回 Skills 市场
86
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install datetime-tool
功能描述
Comprehensive date and time manipulation toolkit supporting multiple formats, timezone conversions, calendar calculations, natural language parsing, and date...
使用说明 (SKILL.md)
DateTime Tool — Advanced Date/Time Operations
Full-featured datetime manipulation toolkit for format conversion, timezone handling, date arithmetic, and calendar calculations across ISO 8601, RFC 2822, Unix timestamps, and natural language inputs.
Quick Start
# Current time in UTC
datetime-tool --now
# Parse and reformat
datetime-tool --parse "2026-01-15 14:30:00" --format "ISO"
# Timezone conversion
datetime-tool --convert "14:00 UTC" --to "Asia/Shanghai"
Usage
datetime-tool [COMMAND] [INPUT] [OPTIONS]
Commands:
--now Show current date/time
--parse INPUT Parse date from string
--convert INPUT Convert between timezones
--diff START END Calculate interval between two dates
--add INPUT N Add time units to a date
--sub INPUT N Subtract time units from a date
--calendar YEAR Show calendar for a year/month
Options:
--format FMT Output format: ISO, RFC2822, Unix, or custom format string
--from TZ Source timezone (default: local)
--to TZ Target timezone
--units Output units for diff: seconds, minutes, hours, days
--json Output as structured JSON
Examples
# Get current time in multiple formats
datetime-tool --now --format ISO
datetime-tool --now --format "January 2, 2006 at 3:04 PM"
# Parse and reformat
datetime-tool --parse "2026-01-15" --format "January 15, 2026"
# Convert between timezones
datetime-tool --convert "14:00 UTC" --to "Asia/Shanghai"
datetime-tool --convert "2026-01-15 09:00" --from "America/New_York" --to "Europe/London"
# Calculate date differences
datetime-tool --diff "2026-01-01" "2026-12-31" --units days
# Add/subtract time
datetime-tool --add "2026-01-01" --days 45
datetime-tool --sub "2026-03-01" --months 2
# Calendar view
datetime-tool --calendar 2026
datetime-tool --calendar 2026-03
# Machine-readable output
datetime-tool --parse "next Friday" --json
Features
- Parse from natural language: "next Friday", "last day of month", "+2 weeks"
- Timezone conversion: Any IANA timezone (UTC, local, Asia/Shanghai, etc.)
- Date arithmetic: Add/subtract days, weeks, months, years
- Interval calculation: Precise duration between any two dates
- Multiple output formats: ISO 8601, RFC 2822, Unix timestamp, custom templates
- Calendar display: Month or year view with week numbers
- JSON output: Structured for pipeline consumption
- ISO week numbers & day-of-year: For scheduling and accounting
安全使用建议
This skill looks safe for ordinary local date/time formatting and conversion. Before installing, confirm how the datetime-tool command maps to the bundled Python scripts, and avoid relying on its month/year calculations for critical scheduling or accounting without independent verification.
功能分析
Type: OpenClaw Skill
Name: datetime-tool
Version: 1.0.0
The skill bundle provides standard date and time manipulation utilities. The Python scripts (datetool.py and dt.py) use safe, built-in libraries for date arithmetic and formatting without any evidence of network access, file system interaction, or command execution. The SKILL.md documentation accurately describes the tool's functionality and contains no prompt-injection attempts or malicious instructions.
能力评估
Purpose & Capability
The visible scripts are aligned with date/time conversion and calendar functions, but some implementation details are approximate despite broad documentation claims of advanced or precise date handling.
Instruction Scope
The SKILL.md contains normal user-invoked CLI examples and does not include prompt overrides, hidden instructions, autonomous execution requirements, or unsafe tool-chaining instructions.
Install Mechanism
Registry metadata says there is no install spec while the package includes executable Python scripts and the documentation invokes a datetime-tool command, so users should verify how the command is actually wired before use.
Credentials
No required binaries, environment variables, credentials, network services, or OS-specific privileges are declared, which is proportionate for a local date/time helper.
Persistence & Privilege
The provided artifacts do not show background processes, persistence, credential/session access, file modification, privilege escalation, or destructive operations.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install datetime-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/datetime-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Datetime Tool 是什么?
Comprehensive date and time manipulation toolkit supporting multiple formats, timezone conversions, calendar calculations, natural language parsing, and date... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 86 次。
如何安装 Datetime Tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install datetime-tool」即可一键安装,无需额外配置。
Datetime Tool 是免费的吗?
是的,Datetime Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Datetime Tool 支持哪些平台?
Datetime Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Datetime Tool?
由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。
推荐 Skills