Logs, APIs and databases often store time as a Unix timestamp: the number of seconds since 1 January 1970, UTC. Here’s how to read one on a Mac.
Timestamp to date
macOS’s date command does it with -r:
date -r 1767225600
That prints the date in your Mac’s time zone. For UTC:
date -u -r 1767225600
Milliseconds?
JavaScript and many APIs use milliseconds: a 13-digit number. Drop the last three digits before converting.
The current timestamp
date +%s
A date to a timestamp
date -j -f "%Y-%m-%d %H:%M:%S" "2026-10-04 09:00:00" +%s
From the notch
NotchMind, which I make, has Unix seconds → UTC on its Developer Tools page. Paste the number and it shows the date. It accepts years 0001 to 9999. See developer tools in the notch.
NotchMind