Timestamp Converter

Convert Unix timestamps to readable dates, or any date back to Unix time. Shows results across 7 timezones instantly.

Now: 1794042165
ISO 86012026-11-07T09:02:45.000Z
Timezones
UTCNov 07, 2026, 09:02:45 UTC
Asia/JakartaNov 07, 2026, 16:02:45 GMT+7
Asia/SingaporeNov 07, 2026, 17:02:45 GMT+8
America/New_YorkNov 07, 2026, 04:02:45 EST
America/Los_AngelesNov 07, 2026, 01:02:45 PST
Europe/LondonNov 07, 2026, 09:02:45 GMT
Europe/ParisNov 07, 2026, 10:02:45 GMT+1
Unix (s)1794042165
Unix (ms)1794042165000
Day of weekSaturday
Relative0s ago

What is Unix Epoch Time?

Unix time is a system for tracking time as a single continuous numeric count of seconds elapsed since the Unix Epoch:Thursday, 1 January 1970 00:00:00 UTC.

Because it is a single integer, it is completely free of daylight saving time adjustments, local timezone offsets, or locale-specific string formatting issues. This makes Unix timestamps the gold standard for database records, JWT token expiration (exp claims), API cache invalidation headers, and distributed event logs.

Timestamp Precision & Unit Comparison

UnitDigit CountExample FormatTypical Ecosystem
Seconds10 digits1726581600Unix OS, Linux kernel, Python time.time(), PHP time()
Milliseconds13 digits1726581600000JavaScript Date.now(), Java System.currentTimeMillis()
Microseconds16 digits1726581600000000PostgreSQL now(), Python datetime, High-frequency trading
Nanoseconds19 digits1726581600000000000Go time.Now().UnixNano(), Rust SystemTime

Code Cheat-Sheet: Getting & Converting Timestamps

  • JavaScript / TypeScript (Browser & Node.js):
    // Current timestamp in seconds const nowSec = Math.floor(Date.now() / 1000); // Convert timestamp (seconds) to ISO Date string const isoDate = new Date(nowSec * 1000).toISOString();
  • Python 3:
    import time from datetime import datetime, timezone # Current timestamp in seconds now_sec = int(time.time()) # Convert timestamp to human UTC date utc_date = datetime.fromtimestamp(now_sec, tz=timezone.utc).isoformat()
  • Go (Golang):
    import ( "fmt" "time" ) // Current timestamp nowSec := time.Now().Unix() // Convert back to formatted time formatted := time.Unix(nowSec, 0).UTC().Format(time.RFC3339)
  • Bash / Terminal:
    # Get current timestamp date +%s # Convert timestamp to human date (Linux) date -d @1726581600 "+%Y-%m-%d %H:%M:%S UTC"

The Year 2038 Problem (Y2038)

On 19 January 2038 at 03:14:07 UTC, the 32-bit signed integer used by older 32-bit computer architectures to store Unix time will exceed its maximum value of 2,147,483,647. The next tick will cause an integer overflow into negative numbers (-2,147,483,648), causing affected systems to reset their calendars to 13 December 1901.

Modern operating systems (Linux 64-bit, macOS 64-bit, Windows 64-bit) have transitioned to 64-bit time_t integers, which can safely track timestamps for over 292 billion years into the future.

Frequently Asked Questions

What is Unix timestamp (Epoch time)?

Unix timestamp (also known as POSIX time or Unix epoch) is the number of seconds that have elapsed since 00:00:00 UTC on Thursday, 1 January 1970, not counting leap seconds. It provides a universal, timezone-independent integer representation of time used across databases, operating systems, and distributed APIs.

How do I distinguish between seconds, milliseconds, and microseconds?

Check the digit count of the numeric timestamp: 10 digits represents seconds (e.g. 1726000000, valid from 2001 to 2286), 13 digits represents milliseconds (e.g. 1726000000000, commonly produced by JavaScript Date.now()), and 16 digits represents microseconds (often used in C++ and Python time_ns / 1000).

What is the Year 2038 Problem (Y2038 / Epochalypse)?

Legacy 32-bit systems store Unix time as a signed 32-bit integer (time_t), which has a maximum value of 2,147,483,647. On 19 January 2038 at 03:14:07 UTC, this integer will overflow to -2,147,483,648, causing systems to interpret the date as 13 December 1901. Modern 64-bit systems resolve this with a 64-bit integer, safe for roughly 292 billion years.

How does Unix time handle Leap Seconds?

Unix time does not count leap seconds. When an official leap second is inserted into UTC by the IERS (International Earth Rotation Service), the Unix clock repeats second 59 or pauses, ensuring each day in Unix time contains exactly 86,400 seconds.

How do I get the current Unix timestamp in code?

In JavaScript: Math.floor(Date.now() / 1000); in Python: int(time.time()); in Go: time.Now().Unix(); in PHP: time(); and in Bash terminal: date +%s.