← All tools

Epoch converter

Turn a Unix timestamp into a date, or a date into a timestamp. Seconds, milliseconds, microseconds and nanoseconds are detected for you.

Convert

Current epoch: … seconds

Try:

Result

What is epoch time?

Unix time counts the seconds since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. It is the same number everywhere in the world, which is why computers use it to store moments in time. A 10-digit number is usually seconds, 13 digits is milliseconds, 16 is microseconds and 19 is nanoseconds.

Everything on this page is calculated in your browser. Nothing you type is sent to us.

In code

JavaScript

Math.floor(Date.now() / 1000)
new Date(1760000000 * 1000).toISOString()

Python

import time
from datetime import datetime, timezone
int(time.time())
datetime.fromtimestamp(1760000000, timezone.utc)

Shell

date +%s
date -u -d @1760000000   # GNU
date -u -r 1760000000    # macOS

PostgreSQL

SELECT EXTRACT(EPOCH FROM now())::bigint;
SELECT to_timestamp(1760000000);