UnixTime

Convert Unix timestamps to dates and back. Use when parsing epoch values, calculating time differences, debugging logs, or generating relative dates.

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 "UnixTime" with this command: npx skills add bytesagain3/unixtime

UnixTime

A Unix time utility for converting timestamps, counting down to events, and analyzing time ranges. Features millisecond detection, ISO 8601 output, and detailed duration breakdowns.

Commands

CommandDescription
unixtime currentShow current Unix timestamp with epoch (s/ms), local, UTC, ISO 8601, day-of-year, week number
unixtime to-date <timestamp>Convert a Unix timestamp to readable date (auto-detects milliseconds for 13+ digit values)
unixtime to-epoch <date-string>Convert a human-readable date string to Unix epoch
unixtime countdown <future-timestamp>Show time remaining until a future timestamp (or how long ago it passed)
unixtime ranges <start> <end>Show full duration between two timestamps (seconds through weeks)
unixtime versionShow version
unixtime helpShow available commands and usage

Requirements

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

When to Use

  1. Quick timestamp checkunixtime current gives epoch, local, UTC, ISO 8601, and calendar info
  2. Parsing log timestampsunixtime to-date 1700000000 or even unixtime to-date 1700000000000 (auto-detects ms)
  3. Date string conversionunixtime to-epoch '2025-06-15 14:00:00' for quick epoch lookup
  4. Event countdownsunixtime countdown <future-epoch> shows remaining time in a breakdown
  5. Duration analysisunixtime ranges <start> <end> shows the gap in seconds, minutes, hours, days, and weeks

Examples

# Show current Unix time with full details
unixtime current

# Convert timestamp to date (auto-detects milliseconds)
unixtime to-date 1700000000
unixtime to-date 1700000000000

# Convert date string to epoch
unixtime to-epoch '2025-06-15 14:00:00'
unixtime to-epoch 'Jan 15 2025'

# Countdown to a future timestamp
unixtime countdown 1800000000

# Analyze a time range
unixtime ranges 1700000000 1700086400

Example Output

$ unixtime current
┌───────────────────────────────────────────────┐
│  Current Unix Time                            │
├───────────────────────────────────────────────┤
│  Epoch (s):   1773916290                       │
│  Epoch (ms):  1773916290572                    │
│  Local:       2026-03-19 18:31:30 CST          │
│  UTC:         2026-03-19 10:31:30 UTC          │
│  ISO 8601:    2026-03-19T10:31:30Z             │
├───────────────────────────────────────────────┤
│  Day of year: 78/365                           │
│  Week:        12                               │
│  Day:         Thursday                         │
└───────────────────────────────────────────────┘

$ unixtime countdown 1800000000
┌───────────────────────────────────────────────────┐
│  ⏳ Countdown                                     │
├───────────────────────────────────────────────────┤
│  Target:     1800000000 (2027-01-14 ...)          │
│  Now:        1773916290                            │
│  Remaining:  301d 12h 1m 50s                       │
├───────────────────────────────────────────────────┤
│  Seconds:    26083710                              │
│  Minutes:    434728.5                              │
│  Hours:      7245.47                               │
│  Days:       301.894                               │
└───────────────────────────────────────────────────┘

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.

General

World Timezone Pro

World timezone converter — convert times across 200+ cities worldwide. Perfect for international calls, remote work, travel planning, and global business. Fe...

Registry SourceRecently Updated
871Profile 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
1191Profile unavailable
General

Unit Converter

Comprehensive unit converter for length, weight, temperature, area, volume, speed, time, and data. Use when: (1) converting between measurement units, (2) ca...

Registry SourceRecently Updated
5990Profile unavailable