Tools

Unix timestamp to date converter

Paste a Unix timestamp or a date and get the conversion instantly.

Local zone: Europe/MadridZones: 10

Timestamp to date

Paste a Unix timestamp, an ISO string, or a readable date and get all common conversions instantly.

Current Unix timestamp
Seconds1796221314Milliseconds1796221314102
NowThe field is empty: the current instant is shown. Paste a timestamp or a date to convert it.
FormatValueActions
UTC date and timeWednesday, December 2, 2026 at 14:21:54 UTC
Local date and time (Europe/Madrid)Wednesday, December 2, 2026 at 15:21:54
ISO 86012026-12-02T14:21:54.102Z
RFC 2822Wed, 02 Dec 2026 14:21:54 +0000
How long ago / in how longnow
Local ISO 86012026-12-02T15:21:54+01:00
Day of weekWednesday
Week of year49

Date to timestamp

Enter a date, time, and time zone to get the Unix time in seconds and milliseconds.

Timestamp in seconds1796221314
Timestamp in milliseconds1796221314000

Time zone converter

See the same instant across multiple IANA time zones at once.

Time zoneDate and timeLocal ISOOffset
UTCWednesday, December 2, 2026 at 14:21:542026-12-02T14:21:54+00:00+00:00
Europe/MadridWednesday, December 2, 2026 at 15:21:542026-12-02T15:21:54+01:00+01:00
Europe/LondonWednesday, December 2, 2026 at 14:21:542026-12-02T14:21:54-00:00-00:00
America/New_YorkWednesday, December 2, 2026 at 09:21:542026-12-02T09:21:54-05:00-05:00
America/Los_AngelesWednesday, December 2, 2026 at 06:21:542026-12-02T06:21:54-08:00-08:00
America/Sao_PauloWednesday, December 2, 2026 at 11:21:542026-12-02T11:21:54-03:00-03:00
Asia/TokyoWednesday, December 2, 2026 at 23:21:542026-12-02T23:21:54+09:00+09:00
Asia/ShanghaiWednesday, December 2, 2026 at 22:21:542026-12-02T22:21:54+08:00+08:00
Asia/DubaiWednesday, December 2, 2026 at 18:21:542026-12-02T18:21:54+04:00+04:00
Australia/SydneyThursday, December 3, 2026 at 01:21:542026-12-03T01:21:54+11:00+11:00

Timestamp difference

Calculate exact durations between two instants in seconds, minutes, hours, and days.

Range generator

Generate timestamp lists between two dates with a configurable granularity.

Current timestamp and conversion in your language

How to get the current Unix time in seconds and convert a timestamp to a UTC date.

LanguageCurrent timestampTimestamp to date
JavaScript
Math.floor(Date.now() / 1000)
new Date(1768175999 * 1000).toISOString()
Python
import time
int(time.time())
from datetime import datetime, timezone
datetime.fromtimestamp(1768175999, tz=timezone.utc)
Bash Linux (GNU date)
date +%s
date -u -d @1768175999
Bash macOS and BSD
date +%s
date -u -r 1768175999
PostgreSQL floor() truncates: without it, the cast to bigint rounds
SELECT floor(EXTRACT(EPOCH FROM now()))::bigint;
SELECT to_timestamp(1768175999) AT TIME ZONE 'UTC';
MySQL FROM_UNIXTIME uses the session time zone; here it is set to UTC
SELECT UNIX_TIMESTAMP();
SET time_zone = '+00:00';
SELECT FROM_UNIXTIME(1768175999);

The examples convert 1768175999, which is 2026-01-11 23:59:59 UTC.


About this tool

Unix time (also called epoch time, POSIX time or Linux timestamp) is the number of seconds elapsed since 1 January 1970 at 00:00:00 UTC, the so-called epoch. It does not count leap seconds: every day lasts exactly 86,400 seconds, so subtracting two timestamps gives a duration. It is the format used by Linux, most APIs, databases and logs.

The number of digits tells you the unit. A 10-digit timestamp is in seconds (date +%s on Linux, time() in PHP); a 13-digit one is in milliseconds, what Date.now() returns in JavaScript and System.currentTimeMillis() in Java; a 16-digit one is in microseconds, common in traces and some databases; and a 19-digit one is in nanoseconds, like time.time_ns() in Python. The converter detects the unit from the number of digits and lets you change it if the detection is wrong.

For example, the timestamp 1768175999 is 2026-01-11 23:59:59 UTC, the last second of 11 January 2026 in UTC, which in Madrid (UTC+1 in winter) is already 12 January at 00:59:59. The same instant in milliseconds is 1768175999000.

Systems that store Unix time in a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC: this is the year 2038 problem, which does not affect 64-bit systems (with an unsigned 32-bit integer the limit is 2106). Below the tool you will find how to get the current timestamp and convert it to a date in JavaScript, Python, Bash, PostgreSQL and MySQL.

Articles published on the blog