Epoch
/install epoch
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
- Quick timestamp lookup —
epoch nowgives you the current epoch + human date instantly - Debugging timestamps in logs —
epoch convert 1700000000shows you what that number actually means - Parsing date strings —
epoch from '2024-01-15 10:30:00'gets you the epoch value - Calculating time differences —
epoch diff \x3Cts1> \x3Cts2>shows the gap in every unit - Time arithmetic —
epoch add 1700000000 3600adds 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]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install epoch - After installation, invoke the skill by name or use
/epoch - Provide required inputs per the skill's parameter spec and get structured output
What is Epoch?
Convert Unix timestamps, compare epochs, and do time arithmetic. Use when converting dates, debugging timestamps, or checking timezone offsets. It is an AI Agent Skill for Claude Code / OpenClaw, with 331 downloads so far.
How do I install Epoch?
Run "/install epoch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Epoch free?
Yes, Epoch is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Epoch support?
Epoch is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Epoch?
It is built and maintained by bytesagain3 (@bytesagain3); the current version is v3.0.0.