← Back to Skills Marketplace
terrycarter1985

Epoch Time Convert

by terrycarter1985 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
27
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install epoch-time-convert
Description
Convert between Unix epoch timestamps and human-readable datetimes, with timezone support and automatic unit detection (seconds/millis/micros/nanos). Use whe...
README (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. Accepts YYYY-MM-DD[ T]HH:MM[:SS] and YYYY-MM-DD.

Notes

  • --tz accepts any IANA timezone name (e.g. UTC, Asia/Shanghai, America/New_York). Defaults to UTC.
  • Timezone support uses the standard-library zoneinfo (Python 3.9+). On older runtimes, only UTC is available.
  • For naive datetime input, the value is interpreted in the supplied --tz, not the machine's local time.
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install epoch-time-convert
  3. After installation, invoke the skill by name or use /epoch-time-convert
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release: epoch<->datetime CLI with timezone + auto unit detection
Metadata
Slug epoch-time-convert
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments