Auto-detects seconds vs milliseconds. Convert to any timezone, run date math, and copy code snippets for Python, JS, PHP, Go & Rust — all synced live.
Frequently searched conversions. All timestamps at 00:00:00 UTC. Click any card to copy.
Everything you need to know about Unix timestamps and date conversion.
A Unix timestamp is the number of seconds elapsed since January 1, 1970 (UTC), known as the Unix epoch. It is a standard way to represent dates and times in programming across all languages and platforms.
Unix timestamps in seconds are 10 digits (e.g. 1700000000). Millisecond timestamps are 13 digits (e.g. 1700000000000). This tool auto-detects which format you are using — no need to specify.
JavaScript: Math.floor(Date.now()/1000) — Python: import time; int(time.time()) — The tool also shows live code snippets for PHP, Go, and Rust.
The maximum 32-bit Unix timestamp is 2147483647, which corresponds to January 19, 2038. After that point, 32-bit systems overflow. 64-bit systems handle timestamps far beyond that date without issue.
Use the Date Math section. Select a base timestamp, choose to add or subtract days, hours, minutes or seconds, and see the resulting timestamp and human-readable date instantly.
💚 Like it? Keep it free. GetPDFMint runs on goodwill.
Support GetPDFMintA Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 at 00:00:00 UTC — known as the Unix Epoch. It is the universal standard for representing time in software, used by databases, APIs, programming languages, and operating systems worldwide.
Here are frequently searched Unix timestamp values for reference:
To convert any date to a Unix timestamp, enter the date or paste an existing timestamp in the input above and the converter will instantly show you the result in seconds, milliseconds, UTC, local time, ISO 8601 format, and relative time. You can also click any of the famous date buttons to quickly load a common timestamp.
Get the current Unix timestamp in your language:
Python: int(time.time()) —
JavaScript: Math.floor(Date.now()/1000) —
PHP: time() —
Go: time.Now().Unix()