Epoch Timestamp Converter
Fast and free online tool to convert Unix epoch timestamps to human-readable dates, and human-readable dates to Unix timestamps.
Epoch to Human Readable
Convert timestamps to formats and details
Conversions
Date to Epoch Converter
Convert dates, times, and zones to Unix epoch
Output Epoch Timestamps
What is a Unix Epoch Timestamp?
A Unix epoch timestamp (also referred to as Unix time, POSIX time, or Unix epoch) represents the total number of seconds elapsed since Thursday, January 1, 1970, at 00:00:00 Coordinated Universal Time (UTC).
This starting point is historically called the "Unix epoch." Leap seconds are omitted from the count, ensuring that every calendar day is treated as exactly 86,400 seconds. Because it is simple, sequential, and entirely timezone-neutral, the Unix timestamp is the standard method for systems to synchronize and store time across the globe.
On January 19, 2038, 32-bit signed integer timestamps will overflow beyond 2,147,483,647. Systems still relying on 32-bit signed integer times will experience errors. Modern operating systems and databases prevent this by transitioning to 64-bit integers.
Developer Cheat Sheet: Get & Convert Timestamps
Quick code references for managing Unix epoch timestamps in common programming environments.
| Programming Language | Get Current Epoch Time (Seconds) | Convert Epoch to Date Object |
|---|---|---|
| JavaScript / Node.js | Math.floor(Date.now() / 1000) | new Date(timestamp * 1000) |
| Python | import time int(time.time()) | from datetime import datetime datetime.fromtimestamp(timestamp) |
| Go | time.Now().Unix() | time.Unix(timestamp, 0) |
| Java | System.currentTimeMillis() / 1000L | new java.util.Date(timestamp * 1000L) |
| PHP | time() | date('Y-m-d H:i:s', timestamp) |
| Ruby | Time.now.to_i | Time.at(timestamp) |
| C# / .NET | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.FromUnixTimeSeconds(timestamp) |
| Bash / Shell | date +%s | date -d @1779732923 (Linux) or date -r 1779732923 (macOS) |
| PostgreSQL | SELECT extract(epoch from now()); | SELECT to_timestamp(timestamp); |
| MySQL | SELECT UNIX_TIMESTAMP(); | SELECT FROM_UNIXTIME(timestamp); |
Unix Timestamp Milestones
Historical and future milestone timestamps and their corresponding UTC calendar representations.