Online Timer Stuon Product of Stuon

Epoch Converter

See the current Unix timestamp and convert timestamps to dates and back.

Current Unix timestamp (seconds)

—

Milliseconds: —

Timestamp to date

—

Local time
—
UTC
—
ISO 8601
—
Relative
—

Date to timestamp

Seconds
—
Milliseconds
—
ISO 8601 (UTC)
—

What is Unix epoch time?

A Unix timestamp counts the seconds since 00:00:00 UTC on 1 January 1970 (the "epoch"), ignoring leap seconds. It is the same everywhere in the world, so it is handy for logs, databases and APIs. JavaScript and many APIs use milliseconds instead — 13 digits rather than 10.

The converter detects the unit from the number of digits: up to 11 → seconds, 12–14 → milliseconds, 15–17 → microseconds, more → nanoseconds.

Notable timestamps

TimestampUTC date
01970-01-01T00:00:00Z
10000000002001-09-09T01:46:40Z
12345678902009-02-13T23:31:30Z
15000000002017-07-14T02:40:00Z
17000000002023-11-14T22:13:20Z
18000000002027-01-15T08:00:00Z
20000000002033-05-18T03:33:20Z
21474836472038-01-19T03:14:07Z

2147483647 is the largest signed 32-bit value — the "Year 2038 problem" for older systems.

Frequently asked questions

How do I get the current epoch time in code?

JavaScript: Math.floor(Date.now() / 1000). Python: int(time.time()). Shell: date +%s. PHP: time().

Is a Unix timestamp in UTC?

Yes. A timestamp is time-zone independent; converting it to a date needs a time zone, which is why both local and UTC are shown.

How do I tell if a timestamp is seconds or milliseconds?

Current timestamps in seconds have 10 digits; in milliseconds they have 13.

Study smarter with Stuon

Take your focus further.

Turn what you learn into lasting knowledge with active recall, spaced repetition, and simple study tracking.

Continue on Stuon