|
Developer Utilities 100% Client-Side · 0 Bytes Sent to Server Instant In-Memory Execution

Epoch / Unix Timestamp Converter

Convert Unix epoch timestamps to UTC and local human dates. Features real-time clock ticker, seconds/milliseconds auto-detection, and relative time calculations.

Current Live Unix Epoch Timestamp
1793076194seconds

Convert Unix Epoch Timestamp to Date & Time

Detected: seconds (10 digits)
Jump offset:
Formatted Local TimeTuesday, October 27, 2026 at 4:43:14 AM UTC
UTC / GMT StringTue, 27 Oct 2026 04:43:14 GMT
ISO 8601 String2026-10-27T04:43:14.000Z
Relative Age0 seconds ago
Unix Epoch (Seconds)1793076194
Unix Epoch (Milliseconds)1793076194000

Convert Human Date & Time to Unix Timestamp

Seconds (10 Digits)1793076180
Milliseconds (13 Digits)1793076180000

Get Current Unix Epoch in Programming Languages

JavaScript / TypeScript
Math.floor(Date.now() / 1000) // seconds
Date.now() // milliseconds
Python
import time
int(time.time()) # seconds
int(time.time() * 1000) # milliseconds
Bash / Shell
date +%s # seconds
date +%s%3N # milliseconds
Go (Golang)
import "time"
time.Now().Unix() // seconds
time.Now().UnixMilli() // milliseconds
PHP
time(); // seconds
(int)(microtime(true) * 1000); // milliseconds
Java
import java.time.Instant;
Instant.now().getEpochSecond(); // seconds
System.currentTimeMillis(); // milliseconds
C# (.NET)
DateTimeOffset.UtcNow.ToUnixTimeSeconds();
DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
Rust
use std::time::{SystemTime, UNIX_EPOCH};
SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs();
SQL (PostgreSQL / MySQL)
-- PostgreSQL
SELECT extract(epoch from now());
-- MySQL
SELECT UNIX_TIMESTAMP();

Step-by-Step Instructions

1

Enter Unix Epoch Timestamp or Datetime

Input a Unix timestamp in seconds (10 digits) or milliseconds (13 digits), or pick a human calendar date.

2

Select Timezone

View conversions in Universal Coordinated Time (UTC / GMT) or your local device timezone.

3

Inspect Multi-Format Datetime Outputs

Review instant conversions across ISO 8601 (`YYYY-MM-DDTHH:mm:ssZ`), RFC 2822, Relative Time ('2 hours ago'), and Julian Day.

4

Copy Formatted Date or Timestamp

Copy the timestamp integer or formatted date string for your database queries, logs, and backend APIs.

Key Features & Capabilities

  • Bidirectional conversion: Unix Epoch Seconds/Milliseconds $\leftrightarrow$ Human Readable UTC and Local Datetime
  • Real-time live Unix Epoch clock updating continuously with millisecond precision
  • Multi-standard output formats: ISO 8601, RFC 2822, RFC 3339, SQL Datetime (`YYYY-MM-DD HH:MM:SS`), Unix Milliseconds
  • Year 2038 Problem (Y2K38) 32-bit vs 64-bit integer signed overflow timeline calculator

Frequently Asked Questions

What is Unix Epoch Time and how is it defined?

Unix Epoch Time (POSIX time) is the number of seconds that have elapsed since **00:00:00 UTC on January 1, 1970** (the Unix Epoch), excluding leap seconds. It is the universal standard used across Linux, Unix, databases, and network protocols to represent time as a single integer.

How do you distinguish between timestamps in seconds versus milliseconds?

Timestamps in **seconds** are currently **10 digits long** (e.g., `1710000000` for year 2024), standard in Python, PHP, and PostgreSQL. Timestamps in **milliseconds** are **13 digits long** (e.g., `1710000000000`), standard in JavaScript (`Date.now()`) and Java (`System.currentTimeMillis()`).

What is the Year 2038 Problem (Y2K38)?

On **January 19, 2038 at 03:14:07 UTC**, 32-bit signed integers storing Unix time will reach their maximum value ($2^{31} - 1 = 2,147,483,647$). The next second, the integer will overflow into negative numbers, resetting clocks to December 13, 1901. Modern 64-bit operating systems and databases prevent this, extending timestamp capacity for over 292 billion years.

How do leap seconds affect Unix timestamp calculations?

Unix time intentionally ignores leap seconds: every day is treated as containing exactly 86,400 seconds. When an official leap second is added by the IERS, Unix clocks either repeat second 86,399 or apply 'leap smearing' across hours to prevent step discontinuities.

Discover complementary online tools in the same workflow.