Unix Timestamp & Epoch Converter
Convert Unix timestamps to human-readable date/time formats and vice-versa in real-time.
| Format (RFC 2822) | - | |
| ISO 8601 / UTC | - | |
| Local Time | - | |
| Relative Time | - | |
| Day of Year | - |
| Seconds (Unix) | - | |
| Milliseconds (JS) | - | |
| Microseconds (μs) | - | |
| Nanoseconds (Go/Rust) | - |
Paste multiple timestamps (one per line, comma-separated, or inside logs). We'll convert them all at once.
| Timestamp | UTC Date & Time | Local Date & Time | Action |
|---|
How to Get the Current Epoch Timestamp in Any Language
Math.floor(Date.now() / 1000) // seconds
Date.now() // milliseconds
import time
int(time.time()) # seconds
time(); // seconds
microtime(true); // with microseconds
time.Now().Unix() // seconds
time.Now().UnixMilli() // ms
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap().as_secs();
date +%s # seconds
date +%s%3N # milliseconds
What is Unix Epoch Time?
The Unix epoch (or POSIX time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970 (excluding leap seconds). It is the universal standard for representing timestamps in operating systems, databases (PostgreSQL, MySQL, MongoDB), APIs, and file systems because it provides an unambiguous, timezone-agnostic numerical value.
Seconds vs. Milliseconds vs. Microseconds
- Seconds (10 digits): Standard Unix timestamp used in Linux, Python
time.time(), PHPtime(), and SQLUNIX_TIMESTAMP(). Example:1719300000. - Milliseconds (13 digits): Standard format used in JavaScript
Date.now(), JavaSystem.currentTimeMillis(), and MongoDB ObjectId timestamps. Example:1719300000000. - Microseconds (16 digits) & Nanoseconds (19 digits): High-precision timestamps used in Go, Rust, C++ high-resolution clocks, and tracing systems.
The Year 2038 Problem (Y2K38)
On January 19, 2038 at 03:14:07 UTC, 32-bit signed integers will overflow because they cannot store values greater than 2,147,483,647. Modern 64-bit systems handle timestamps up to 292 billion years into the future, completely resolving the limitation.