← 返回 Skills 市场
Epoch Time Convert
作者
terrycarter1985
· GitHub ↗
· v0.1.0
· MIT-0
27
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install epoch-time-convert
功能描述
Convert between Unix epoch timestamps and human-readable datetimes, with timezone support and automatic unit detection (seconds/millis/micros/nanos). Use whe...
使用说明 (SKILL.md)
Epoch Time Convert
Overview
Convert Unix epoch timestamps to ISO datetimes and back, in any IANA timezone. The bundled script auto-detects whether an epoch value is in seconds, milliseconds, microseconds, or nanoseconds.
Quick Start
Run the script with one of three subcommands:
# Current time (UTC by default)
python3 scripts/epoch.py now --tz Asia/Shanghai
# Epoch -> ISO datetime (unit auto-detected)
python3 scripts/epoch.py to-human 1718000000 --tz UTC
# Datetime -> epoch seconds
python3 scripts/epoch.py to-epoch "2024-06-10 08:00:00" --tz Asia/Shanghai
Commands
now [--tz TZ]— print current epoch seconds, epoch millis, and ISO datetime.to-human \x3CEPOCH> [--tz TZ]— convert an epoch value to an ISO datetime. Unit is auto-detected by magnitude (s / ms / µs / ns).to-epoch "\x3CDATETIME>" [--tz TZ]— convert a datetime string to epoch seconds. AcceptsYYYY-MM-DD[ T]HH:MM[:SS]andYYYY-MM-DD.
Notes
--tzaccepts any IANA timezone name (e.g.UTC,Asia/Shanghai,America/New_York). Defaults toUTC.- Timezone support uses the standard-library
zoneinfo(Python 3.9+). On older runtimes, onlyUTCis available. - For naive datetime input, the value is interpreted in the supplied
--tz, not the machine's local time.
安全使用建议
This appears safe to install for local timestamp conversion. Review timezone inputs and date parsing behavior for correctness, but there is no evidence that the skill accesses private data, contacts external services, or modifies your environment.
能力评估
Purpose & Capability
The stated purpose is converting Unix epoch timestamps and datetimes, and the bundled Python script only performs timezone-aware date parsing, current-time display, and timestamp conversion.
Instruction Scope
Instructions are narrow and user-directed: run one local script with explicit subcommands and timezone arguments. There are no role changes, prompt overrides, hidden directives, or broad file/system access requests.
Install Mechanism
The artifact contains only SKILL.md and scripts/epoch.py; metadata shows no API key requirement, package installation, or external setup beyond using Python standard-library functionality.
Credentials
Local execution is proportionate for a time-conversion utility. The script imports argparse, sys, datetime, and zoneinfo only, with no file reads/writes, network calls, shell execution, or credential access.
Persistence & Privilege
No persistence, background execution, privilege escalation, account mutation, or long-running worker behavior is present in the artifacts.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install epoch-time-convert - 安装完成后,直接呼叫该 Skill 的名称或使用
/epoch-time-convert触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: epoch<->datetime CLI with timezone + auto unit detection
元数据
常见问题
Epoch Time Convert 是什么?
Convert between Unix epoch timestamps and human-readable datetimes, with timezone support and automatic unit detection (seconds/millis/micros/nanos). Use whe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 27 次。
如何安装 Epoch Time Convert?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install epoch-time-convert」即可一键安装,无需额外配置。
Epoch Time Convert 是免费的吗?
是的,Epoch Time Convert 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Epoch Time Convert 支持哪些平台?
Epoch Time Convert 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Epoch Time Convert?
由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v0.1.0。
推荐 Skills