API Responses
Twitter/X, Stripe, and GitHub all return Unix timestamps in JSON payloads. For example, a Stripe charge object includes created as a Unix timestamp, and GitHub events expose created_at in epoch seconds.
Unix time is everywhere — APIs, databases, server logs, file systems. This tool converts any Unix time value to a human-readable date instantly, client-side, with no data sent to a server.
Current Unix Timestamp
1776195270
Twitter/X, Stripe, and GitHub all return Unix timestamps in JSON payloads. For example, a Stripe charge object includes created as a Unix timestamp, and GitHub events expose created_at in epoch seconds.
MySQL stores and retrieves Unix time with UNIX_TIMESTAMP() and FROM_UNIXTIME(). PostgreSQL uses EXTRACT(EPOCH FROM ...) and TO_TIMESTAMP().
Nginx access logs, Apache logs, and syslog entries often include Unix timestamps. Tools like awk and date -d @ are commonly used to parse and convert these values in shell scripts.
While ls -l displays human-readable dates, the OS internally stores mtime, atime, and ctime as Unix timestamps inside each inode. The stat command reveals the raw values.
JSON Web Tokens use Unix timestamps for the exp (expiration) and iat (issued at) claims. Paste a JWT into jwt.io and you will see these decoded as epoch seconds.
Unix cron itself does not use timestamps, but task schedulers like Celery, Sidekiq, and AWS EventBridge record scheduled execution times as Unix timestamps to avoid timezone ambiguity.
| Timestamp | UTC Date | Notes |
|---|---|---|
| 1735689600 | Jan 1, 2025 00:00:00 UTC | Start of 2025 |
| 1751587200 | Jul 4, 2025 00:00:00 UTC | US Independence Day 2025 |
| 1767225600 | Jan 1, 2026 00:00:00 UTC | Start of 2026 |
| 1798761600 | Dec 31, 2026 00:00:00 UTC | End of 2026 |
| 1893456000 | Jan 1, 2030 00:00:00 UTC | Start of 2030 |
JavaScript
new Date(unixTime * 1000).toLocaleString()Node.js
new Date(unixTime * 1000).toISOString()Python
from datetime import datetime
datetime.utcfromtimestamp(unix_time)PHP
date('Y-m-d H:i:s', $unix_time)Java
Instant.ofEpochSecond(unixTime)Go
time.Unix(unixTime, 0).UTC()MySQL
FROM_UNIXTIME(unix_time)PostgreSQL
TO_TIMESTAMP(unix_time)SQLite
datetime(unix_time, 'unixepoch')Linux
date -d @unix_timemacOS
date -r unix_timeWindows PowerShell
[DateTimeOffset]::FromUnixTimeSeconds(unix_time)Unix time is traditionally measured in seconds — these are 10-digit numbers (e.g. 1700000000). JavaScript's Date.now()and Java's System.currentTimeMillis() return milliseconds — 13-digit numbers (e.g. 1700000000000).
Quick rule: if the number is greater than 10000000000 (10 billion), it is almost certainly milliseconds. Count the digits: 10 digits = seconds, 13 digits = milliseconds.
// Auto-detect seconds vs milliseconds
function toDate(value: number): Date {
// 13-digit numbers are milliseconds (> year 2001 in seconds)
const isMilliseconds = value > 9_999_999_999;
return new Date(isMilliseconds ? value : value * 1000);
}
// Examples
toDate(1700000000); // seconds → 2023-11-14
toDate(1700000000000); // ms → 2023-11-14new Date(unixTime * 1000), Python: datetime.utcfromtimestamp(unixTime).Date.now() returns milliseconds (13-digit). Count the digits to determine the unit, or use the tool's auto-detection.Date.now() for milliseconds (divide by 1000 for seconds), or Math.floor(Date.now() / 1000) for integer seconds.datetime.utcfromtimestamp(ts) for UTC, or datetime.fromtimestamp(ts) for local time. Both are in the standard datetime module.Unix Timestamp Converter
Convert Unix timestamps to human-readable dates and back, instantly.
Epoch Converter
Convert epoch timestamps to human-readable dates and times.
Unix Timestamp
Learn about Unix timestamps and get the current value live.
Timestamp to Date
Convert any Unix timestamp to a readable date and time.
Date to Timestamp
Convert dates and times into Unix timestamps.
Epoch Time
Explore epoch time history, standards, and real-world usage.
UTC Time Now
See the current UTC time live with a real-time clock.
Year 2038 Problem
Learn about the Y2K38 overflow and which systems are affected.
Seconds Since 1970
See how many seconds have elapsed since the Unix epoch.
Epoch Time to Date
Convert epoch time to a readable date with code examples in 6 languages.
Linux Timestamp to Date
Convert Linux/Unix timestamps to readable dates using command-line tools.