CLI
Unix Timestamps in Bash / CLI
GNU date and BSD / macOS date command recipes.
Complete Bash / CLI Recipe
# 1. Get current Unix timestamp
date +%s
# 2. Convert timestamp (1710000000) to human date (GNU / Linux):
date -d @1710000000 -u +"%Y-%m-%dT%H:%M:%SZ"
# 2b. Convert timestamp (1710000000) to human date (macOS / BSD):
date -r 1710000000 -u +"%Y-%m-%dT%H:%M:%SZ"
# 3. Convert ISO date to timestamp (GNU date):
date -d "2026-10-02T12:00:00Z" +%s
Test With Live Converter
Epoch → Human Date
Paste any Unix timestamp. The unit is auto-detected from its magnitude.
Auto-detects seconds, milliseconds, microseconds, or nanoseconds. Example: 1735689600
Detected:Auto (Seconds)
UTC ISO 8601
–
Local — auto
–
RFC 2822 / GMT
–
Seconds Value
–
Relative Time
–