Epoch Time Convert
/install epoch-time-convert
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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install epoch-time-convert - After installation, invoke the skill by name or use
/epoch-time-convert - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 27 downloads so far.
How do I install Epoch Time Convert?
Run "/install epoch-time-convert" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Epoch Time Convert free?
Yes, Epoch Time Convert is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Epoch Time Convert support?
Epoch Time Convert is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Epoch Time Convert?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v0.1.0.