← 返回 Skills 市场
bytesagain3

Epoch

作者 bytesagain3 · GitHub ↗ · v3.0.0 · MIT-0
cross-platform ✓ 安全检测通过
331
总下载
0
收藏
2
当前安装
11
版本数
在 OpenClaw 中安装
/install epoch
功能描述
Convert Unix timestamps, compare epochs, and do time arithmetic. Use when converting dates, debugging timestamps, or checking timezone offsets.
使用说明 (SKILL.md)

Epoch

A real Unix timestamp tool for converting, comparing, and calculating epoch timestamps. All conversions use the system date command with support for both local and UTC output.

Commands

Command Description
epoch now Show current epoch timestamp + human-readable date (local & UTC)
epoch convert \x3Ctimestamp> Convert an epoch timestamp to human-readable local, UTC, and age
epoch from \x3Cdate-string> Convert a human-readable date string to epoch
epoch diff \x3Cts1> \x3Cts2> Calculate difference between two timestamps (seconds, minutes, hours, days)
epoch add \x3Ctimestamp> \x3Cseconds> Add seconds to a timestamp and show the result
epoch version Show version
epoch help Show available commands and usage

Requirements

  • Bash 4+ (set -euo pipefail)
  • date, awk — standard Unix utilities
  • No external dependencies or API keys

When to Use

  1. Quick timestamp lookupepoch now gives you the current epoch + human date instantly
  2. Debugging timestamps in logsepoch convert 1700000000 shows you what that number actually means
  3. Parsing date stringsepoch from '2024-01-15 10:30:00' gets you the epoch value
  4. Calculating time differencesepoch diff \x3Cts1> \x3Cts2> shows the gap in every unit
  5. Time arithmeticepoch add 1700000000 3600 adds an hour and shows the result

Examples

# Show current epoch + human-readable date
epoch now

# Convert epoch to date
epoch convert 1700000000

# Convert date string to epoch
epoch from '2024-01-15 10:30:00'
epoch from 'Jan 15 2024'

# Difference between two timestamps
epoch diff 1700000000 1700086400

# Add 1 hour (3600 seconds) to a timestamp
epoch add 1700000000 3600

# Add 7 days to a timestamp
epoch add 1700000000 604800

Example Output

$ epoch now
┌─────────────────────────────────────┐
│  Current Time                       │
├─────────────────────────────────────┤
│  Epoch:  1773916290                 │
│  Human:  2026-03-19 18:31:30 CST   │
├─────────────────────────────────────┤
│  UTC:    2026-03-19 10:31:30 UTC   │
└─────────────────────────────────────┘

$ epoch diff 1700000000 1700086400
┌───────────────────────────────────────────────────┐
│  Timestamp Difference                             │
├───────────────────────────────────────────────────┤
│  From:     1700000000 (2023-11-15 06:13:20 CST)   │
│  To:       1700086400 (2023-11-16 06:13:20 CST)   │
├───────────────────────────────────────────────────┤
│  Seconds:  86400                                   │
│  Minutes:  1440.00                                 │
│  Hours:    24.00                                   │
│  Days:     1.0000                                  │
│  Duration: 1d 0h 0m 0s                             │
└───────────────────────────────────────────────────┘

Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill appears coherent and low-risk: it converts and computes timestamps using only standard shell utilities and requires no credentials or network access. You can safely inspect scripts/script.sh before enabling. Note: date parsing behavior can differ between GNU and BSD/macOS date implementations (the script already contains fallbacks), so test it on your platform. If you prefer to avoid any autonomous execution, keep model invocation disabled for this skill or run the script locally yourself.
功能分析
Type: OpenClaw Skill Name: epoch Version: 3.0.0 The 'Epoch' skill is a standard Unix timestamp utility for converting and calculating dates. The implementation in 'scripts/script.sh' uses built-in Bash arithmetic and standard system utilities (date, awk) with proper input validation and quoting, showing no signs of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included scripts/script.sh are consistent: the script implements epoch now/convert/from/diff/add using only bash, date, and awk. No unrelated binaries, credentials, or services are requested.
Instruction Scope
Runtime instructions and the script operate only on provided arguments and standard utilities. The SKILL.md and script do not read arbitrary files, access environment secrets, perform network requests, or transmit data externally.
Install Mechanism
There is no install spec or remote download. The skill is instruction-only with an included shell script; nothing in the package writes or fetches code from external URLs during install.
Credentials
No environment variables, credentials, or config paths are required. The declared requirements (bash 4+, date, awk) are appropriate for the tool's functionality.
Persistence & Privilege
always is false, the skill does not modify other skills or system-wide settings, and it does not request persistent presence or perform privileged operations.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install epoch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /epoch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
v3.0.0: Complete rewrite with real functionality + SKILL.md aligned.
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.7
old template -> domain-specific v2.0.0
v1.0.6
old template -> domain-specific v2.0.0
v1.0.5
Quality upgrade
v1.0.4
Quality upgrade: custom functionality
v1.0.3
De-template, unique content, script cleanup
v1.0.2
Quality fix: cleaner docs, removed flags
v1.0.1
Quality improvement: better docs, examples, cleaner text
v1.0.0
Initial release
元数据
Slug epoch
版本 3.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 11
常见问题

Epoch 是什么?

Convert Unix timestamps, compare epochs, and do time arithmetic. Use when converting dates, debugging timestamps, or checking timezone offsets. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 331 次。

如何安装 Epoch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install epoch」即可一键安装,无需额外配置。

Epoch 是免费的吗?

是的,Epoch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Epoch 支持哪些平台?

Epoch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Epoch?

由 bytesagain3(@bytesagain3)开发并维护,当前版本 v3.0.0。

💬 留言讨论