26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds · 26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds

vrk epoch

About

Converts between Unix timestamps and human-readable dates. You can pass a timestamp, an ISO date, or a relative offset like +3d or -1h. Works the same on macOS and Linux, unlike the date command which differs between platforms.

The problem

You have a Unix timestamp from an API response and need to know what date it is. The date command syntax differs between macOS and Linux. date -d works on Linux, date -r works on macOS, and neither handles relative offsets like “+3d” natively.

Before and after

Before

# Linux
date -d @1740009600
# macOS
date -r 1740009600
# relative? write Python

After

vrk epoch 1740009600 --iso

Example

vrk epoch 1740009600 --iso

Exit codes

CodeMeaning
0Success
1Runtime error (I/O failure)
2Unsupported format, ambiguous timezone, –tz without –iso/–json

Flags

FlagShortTypeDescription
--isoboolOutput as ISO 8601 string instead of Unix integer
--json-jboolEmit JSON with all representations
--tzstringTimezone for –iso or –json output (IANA name or offset)
--nowboolPrint current Unix timestamp without reading stdin
--atstringReference timestamp for relative input (makes scripts deterministic)
--quiet-qboolSuppress stderr output