Epoch

Convert Unix timestamps, compare epochs, and do time arithmetic. Use when converting dates, debugging timestamps, or checking timezone offsets.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Epoch" with this command: npx skills add bytesagain3/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

CommandDescription
epoch nowShow current epoch timestamp + human-readable date (local & UTC)
epoch convert <timestamp>Convert an epoch timestamp to human-readable local, UTC, and age
epoch from <date-string>Convert a human-readable date string to epoch
epoch diff <ts1> <ts2>Calculate difference between two timestamps (seconds, minutes, hours, days)
epoch add <timestamp> <seconds>Add seconds to a timestamp and show the result
epoch versionShow version
epoch helpShow 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 <ts1> <ts2> 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 | hello@bytesagain.com

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Kai Master Builder

Developer, Code, Engineer. Guide the Agent to build apps/features/goals efficiently and securely. Creates project plans, task lists, and provides building pr...

Registry SourceRecently Updated
1700Profile unavailable
Coding

aiXplain Agent Builder

Design and deploy aiXplain agents with conservative defaults, read-only discovery first, and explicit approval gates for higher-risk actions.

Registry SourceRecently Updated
450Profile unavailable
Coding

Uuid Generator

Generate UUIDs in versions v1, v4, and v5 with options for count, namespace, name, and output format.

Registry SourceRecently Updated
771Profile unavailable
Coding

Json Formatter Pro

All-in-one JSON toolkit — format, validate, query, minify, and extract data from JSON. Built-in JMESPath query, JSONPath support, syntax highlighting. 适合API调...

Registry SourceRecently Updated
1181Profile unavailable