How to convert a Unix timestamp on a Mac

Turn a Unix timestamp into a readable date on your Mac, and get the current timestamp, with the built-in date command or from the MacBook notch.

By Rudra Satani, maker of NotchMind ·

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.

About the author

Rudra Satani makes NotchMind, a notch app for Mac, so read anything about notch apps here with that in mind. Spotted a mistake? Email support@notchmind.com, or reach out at @rudraxx13.