Paste a Unix timestamp to see the date it represents, or pick a date to get its timestamp. Seconds, milliseconds and microseconds are detected automatically.
Pick a date and time, and the zone it is in.
// JavaScript Math.floor(Date.now() / 1000) // Python import time; int(time.time()) // PHP time(); // SQL (PostgreSQL) SELECT extract(epoch FROM now());
Pyalm builds custom software, APIs and integrations for businesses in India and the UAE. We made these developer tools for our own team — use them free, and talk to us when you need something built.
Unix (epoch) time counts the seconds since 00:00:00 UTC on 1 January 1970. Because it is just a number with no time zone attached, it is the standard way databases, logs, JWTs and APIs store moments in time — and the source of many 'why is this date wrong by 5½ hours' bugs.
Unix tools and most APIs use seconds (10 digits today); JavaScript's Date.now() and Java use milliseconds (13 digits). Mixing them up lands you in 1970 or the year 50,000. The converter looks at the size of the number and picks the right unit for you.
📖 Read the full guide: Unix Timestamps Explained: Epoch Time, Seconds vs Milliseconds and Time Zones
Compare times across cities and find a meeting slot that works — Dubai, India, London, New York and more.
Build cron schedules visually, read them in plain English and preview the next run times.
Decode a JSON Web Token's header and payload and read its claims and expiry.
It is shown live at the top of the tool, in both seconds and milliseconds, and updates every second.
No. A Unix timestamp always counts from midnight UTC on 1 January 1970, so the same number is the same instant everywhere. Time zones only apply when you display it as a calendar date.
Systems that store Unix time as a signed 32-bit integer overflow at 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit integers, which push the limit billions of years away.
No. Unix time assumes every day has exactly 86,400 seconds, so leap seconds are not counted. For almost all business software this makes no practical difference.